mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #7371)
This commit is contained in:
@@ -6638,7 +6638,8 @@ 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,
|
||||
// ":edit" goes to first line if Vi compatible
|
||||
|
Reference in New Issue
Block a user