Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
| -rw-r--r-- | helix-term/src/ui/prompt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 3518ddf7..ba0dd21d 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -133,7 +133,7 @@ impl Prompt { editor: &'a Editor, ) -> Option<Cow<'a, str>> { self.history_register - .and_then(|reg| editor.registers.first(reg, editor)) + .and_then(|reg| editor.registers.latest(reg, editor)) } pub fn recalculate_completion(&mut self, editor: &Editor) { @@ -656,7 +656,7 @@ impl Component for Prompt { &context .editor .registers - .first(c, context.editor) + .latest(c, context.editor) .unwrap_or_default(), context.editor, ); |