From 3a162e2bef0b8a5ae1045d8b018447c9ed9fde61 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Tue, 15 Aug 2023 07:59:49 +0800 Subject: Make editor remember the latest search register (#5244) --- helix-view/src/register.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-view') 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>, clipboard_provider: Box, + 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: '/', } } } -- cgit v1.2.3-70-g09d2