diff options
author | Blaž Hrastnik | 2021-10-27 09:23:17 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-10-27 09:23:17 +0000 |
commit | 1066b081ddb06a5370371ca139dc8e9b992c1242 (patch) | |
tree | 9834005edf02c029f13ba4a1f0430d6ef60d843e /helix-term | |
parent | 2cee0c58baf601995e6fd7ef774d8556bb1af6b9 (diff) |
fix: When cycling through prompt history, update event needs to trigger
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 1d512ad2..853adfc2 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -501,6 +501,7 @@ impl Component for Prompt { if let Some(register) = self.history_register { let register = cx.editor.registers.get_mut(register); self.change_history(register.read(), CompletionDirection::Backward); + (self.callback_fn)(cx, &self.line, PromptEvent::Update); } } KeyEvent { @@ -514,6 +515,7 @@ impl Component for Prompt { if let Some(register) = self.history_register { let register = cx.editor.registers.get_mut(register); self.change_history(register.read(), CompletionDirection::Forward); + (self.callback_fn)(cx, &self.line, PromptEvent::Update); } } KeyEvent { |