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-view/src/editor.rs | |
parent | 011f9aa47f2316f120da48d342430c7c5caaf107 (diff) |
Regex prompts should have a history with a specifiable register
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 3d2d4a87..52a0060c 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -3,7 +3,7 @@ use crate::{ graphics::{CursorKind, Rect}, theme::{self, Theme}, tree::Tree, - Document, DocumentId, RegisterSelection, View, ViewId, + Document, DocumentId, View, ViewId, }; use futures_util::future; @@ -73,7 +73,7 @@ pub struct Editor { pub tree: Tree, pub documents: SlotMap<DocumentId, Document>, pub count: Option<std::num::NonZeroUsize>, - pub selected_register: RegisterSelection, + pub selected_register: Option<char>, pub registers: Registers, pub theme: Theme, pub language_servers: helix_lsp::Registry, @@ -111,7 +111,7 @@ impl Editor { tree: Tree::new(area), documents: SlotMap::with_key(), count: None, - selected_register: RegisterSelection::default(), + selected_register: None, theme: themes.default(), language_servers, syn_loader: config_loader, |