@@ -485,8 +485,6 @@ fn goto_impl(
485485 locations: Vec<lsp::Location>,
486486 offset_encoding: OffsetEncoding,
487487) {
488− push_jump(editor);
489−
490488 let cwdir = std::env::current_dir().expect("couldn't determine current directory");
491489
492490 match locations.as_slice() {
@@ -520,6 +518,7 @@ fn goto_impl(
520518 format!("{}:{}", file, line).into()
521519 },
522520 move |cx, location, action| {
521+ push_jump(cx.editor);
523522 jump_to_location(cx.editor, location, offset_encoding, action)
524523 },
525524 move |_editor, location| Some(location_to_file_location(location)),