on master help sign in
fix: When cycling through prompt history, update event needs to trigger
commit1066b081ddb06a5370371ca139dc8e9b992c1242 authorBlaž Hrastnik <blaz@mxxn.io> dateWed 27 Oct 2021, 18:23 (5 years ago) parent2cee0c5
1 file changed+2
helix-term/src/ui/prompt.rs+2
helix-term/src/ui/prompt.rs+2
@@ -501,6 +501,7 @@ impl Component for Prompt {
501501 if let Some(register) = self.history_register {
502502 let register = cx.editor.registers.get_mut(register);
503503 self.change_history(register.read(), CompletionDirection::Backward);
504+ (self.callback_fn)(cx, &self.line, PromptEvent::Update);
504505 }
505506 }
506507 KeyEvent {
@@ -514,6 +515,7 @@ impl Component for Prompt {
514515 if let Some(register) = self.history_register {
515516 let register = cx.editor.registers.get_mut(register);
516517 self.change_history(register.read(), CompletionDirection::Forward);
518+ (self.callback_fn)(cx, &self.line, PromptEvent::Update);
517519 }
518520 }
519521 KeyEvent {