Disable nav history in vim scrolls (#32656)
Reland of #30345 to fix merge conflicts with the new skip-completions option Fixes #29431 Fixes #17592 Release Notes: - vim: Scrolls are no longer added to the jumplist
This commit is contained in:
@@ -169,6 +169,12 @@ impl EditorLspTestContext {
|
||||
.expect("Opened test file wasn't an editor")
|
||||
});
|
||||
editor.update_in(&mut cx, |editor, window, cx| {
|
||||
let nav_history = workspace
|
||||
.read(cx)
|
||||
.active_pane()
|
||||
.read(cx)
|
||||
.nav_history_for_item(&cx.entity());
|
||||
editor.set_nav_history(Some(nav_history));
|
||||
window.focus(&editor.focus_handle(cx))
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user