diff options
author | Jonathan LEI | 2023-08-14 23:59:49 +0000 |
---|---|---|
committer | GitHub | 2023-08-14 23:59:49 +0000 |
commit | 3a162e2bef0b8a5ae1045d8b018447c9ed9fde61 (patch) | |
tree | a52a872baceb04776246e117fae249632e381419 /helix-view/src | |
parent | 085706e0cdd569f36f36875fb6698a197c46ed11 (diff) |
Make editor remember the latest search register (#5244)
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/register.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/register.rs b/helix-view/src/register.rs index 3d1849a6..0ebea536 100644 --- a/helix-view/src/register.rs +++ b/helix-view/src/register.rs @@ -29,6 +29,7 @@ pub struct Registers { /// efficiently prepend new values in `Registers::push`. inner: HashMap<char, Vec<String>>, clipboard_provider: Box<dyn ClipboardProvider>, + pub last_search_register: char, } impl Default for Registers { @@ -36,6 +37,7 @@ impl Default for Registers { Self { inner: Default::default(), clipboard_provider: get_clipboard_provider(), + last_search_register: '/', } } } |