Compare commits

...

5 Commits

Author SHA1 Message Date
Max Brunsfeld
1c7fb0f0cb zed 0.84.2 2023-04-27 10:50:15 -07:00
Max Brunsfeld
df26ef9770 Merge pull request #2418 from zed-industries/vim-inactive-window-crash
Fix vim mode crash when active editor changes in inactive window
2023-04-27 10:49:21 -07:00
Max Brunsfeld
74d5e22cec zed 0.84.1 2023-04-26 16:13:30 -07:00
Max Brunsfeld
80efdb13be Merge pull request #2416 from zed-industries/outline-view-leaving-lines-highlighted
Remove highlighted rows when confirming outline view
2023-04-26 16:13:03 -07:00
Joseph Lyons
3f8415b62e v0.84.x preview 2023-04-26 14:19:40 -04:00
5 changed files with 14 additions and 6 deletions

2
Cargo.lock generated
View File

@@ -8539,7 +8539,7 @@ checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec"
[[package]]
name = "zed"
version = "0.84.0"
version = "0.84.2"
dependencies = [
"activity_indicator",
"anyhow",

View File

@@ -187,6 +187,7 @@ impl PickerDelegate for OutlineViewDelegate {
active_editor.change_selections(Some(Autoscroll::center()), cx, |s| {
s.select_ranges([position..position])
});
active_editor.highlight_rows(None);
}
});
cx.emit(PickerEvent::Dismiss);

View File

@@ -9,11 +9,18 @@ pub fn init(cx: &mut AppContext) {
}
fn focused(EditorFocused(editor): &EditorFocused, cx: &mut AppContext) {
if let Some(previously_active_editor) = Vim::read(cx).active_editor.clone() {
cx.update_window(previously_active_editor.window_id(), |cx| {
Vim::update(cx, |vim, cx| {
vim.update_active_editor(cx, |previously_active_editor, cx| {
Vim::unhook_vim_settings(previously_active_editor, cx);
});
});
});
}
cx.update_window(editor.window_id(), |cx| {
Vim::update(cx, |vim, cx| {
vim.update_active_editor(cx, |previously_active_editor, cx| {
Vim::unhook_vim_settings(previously_active_editor, cx);
});
vim.set_active_editor(editor.clone(), cx);
});
});

View File

@@ -3,7 +3,7 @@ authors = ["Nathan Sobo <nathansobo@gmail.com>"]
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed"
version = "0.84.0"
version = "0.84.2"
publish = false
[lib]

View File

@@ -1 +1 @@
dev
preview