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:
parent
f96e4ba84f
commit
79430fc7d2
2 changed files with 35 additions and 26 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue