diff options
author | Blaž Hrastnik | 2021-09-08 05:52:09 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-08 07:34:04 +0000 |
commit | 72cf86e4626c01c6ce2371c7b134ab7a7041620c (patch) | |
tree | 41a97f105e5dd5e0fb68ec2b99727e67545641b5 /helix-term/src/ui/editor.rs | |
parent | 011f9aa47f2316f120da48d342430c7c5caaf107 (diff) |
Regex prompts should have a history with a specifiable register
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r-- | helix-term/src/ui/editor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index e8cd40cf..52cf3d2b 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -710,7 +710,7 @@ impl EditorView { // debug_assert!(cxt.count != 0); // set the register - cxt.selected_register = cxt.editor.selected_register.take(); + cxt.register = cxt.editor.selected_register.take(); self.handle_keymap_event(mode, cxt, event); if self.keymaps.pending().is_empty() { @@ -887,9 +887,9 @@ impl EditorView { impl Component for EditorView { fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult { let mut cxt = commands::Context { - selected_register: helix_view::RegisterSelection::default(), editor: &mut cx.editor, count: None, + register: None, callback: None, on_next_key_callback: None, jobs: cx.jobs, |