mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
vim-patch:8.2.2058: using mkview/loadview changes the jumplist
Problem: Using mkview/loadview changes the jumplist.
Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the
jumplist. (closes vim/vim#7371)
3482be6a33
Definition for BufWinEnter autocmd in Test_mkview_loadview_jumplist()
was moved down a few lines until after the views are written, as in
Nvim, :loadview throws if the view file can't be opened.
This commit is contained in:
@@ -7345,7 +7345,9 @@ do_exedit(
|
||||
else if (eap->cmdidx == CMD_enew)
|
||||
readonlymode = FALSE; /* 'readonly' doesn't make sense in an
|
||||
empty buffer */
|
||||
setpcmark();
|
||||
if (eap->cmdidx != CMD_balt && eap->cmdidx != CMD_badd) {
|
||||
setpcmark();
|
||||
}
|
||||
if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg),
|
||||
NULL, eap, eap->do_ecmd_lnum,
|
||||
(buf_hide(curbuf) ? ECMD_HIDE : 0)
|
||||
|
Reference in New Issue
Block a user