Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim visual block (#2849)

Conrad Irwind1aa82bb489f
diff --cc crates/vim/src/normal/search.rs
index 5f1a68cfe96,44b304392f7..4ca0c42909d
--- a/crates/vim/src/normal/search.rs
+++ b/crates/vim/src/normal/search.rs
@@@ -65,13 -65,15 +65,13 @@@ fn search(workspace: &mut Workspace, ac
cx.focus_self();
if query.is_empty() {
- search_bar.set_search_options(
- SearchOptions::CASE_SENSITIVE | SearchOptions::REGEX,
- cx,
- );
+ search_bar.set_search_options(SearchOptions::CASE_SENSITIVE, cx);
+ search_bar.activate_search_mode(SearchMode::Regex, cx);
}
- vim.state.search = SearchState {
+ vim.workspace_state.search = SearchState {
direction,
count,
- initial_query: query,
+ initial_query: query.clone(),
};
});
}