mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
fix(marks): handle switching buffer properly (#25763)
This commit is contained in:
@@ -3379,6 +3379,7 @@ static linenr_T get_address(exarg_T *eap, char **ptr, cmd_addr_T addr_type, int
|
||||
fmark_T *fm = mark_get(curbuf, curwin, NULL, flag, *cmd);
|
||||
cmd++;
|
||||
if (fm != NULL && fm->fnum != curbuf->handle) {
|
||||
(void)mark_move_to(fm, 0);
|
||||
// Jumped to another file.
|
||||
lnum = curwin->w_cursor.lnum;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user