vim: Fix panic in search (#13487)

Release Notes:

- vim: Fixed a panic when searching after focusing search bar with mouse
This commit is contained in:
Conrad Irwin
2024-06-24 22:16:49 -06:00
committed by GitHub
parent f96e4ba84f
commit 79430fc7d2
2 changed files with 35 additions and 26 deletions
+1 -1
View File
@@ -93,6 +93,7 @@ pub struct EditorState {
pub undo_modes: HashMap<TransactionId, Mode>,
pub selected_register: Option<char>,
pub search: SearchState,
}
#[derive(Default, Clone, Debug)]
@@ -152,7 +153,6 @@ impl From<String> for Register {
#[derive(Default, Clone)]
pub struct WorkspaceState {
pub search: SearchState,
pub last_find: Option<Motion>,
pub recording: bool,