diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-27 11:00:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-27 11:00:38 +0100 |
commit | 3482be6a33c3a00fe1e8e604310ad3034f593045 (patch) | |
tree | d62e001dd9d50fc10d58d7a63c22aef9ac24531b /src/ex_docmd.c | |
parent | fccbf068f8c85474db8d8dead1530321d1f3e5b8 (diff) |
patch 8.2.2058: using mkview/loadview changes the jumplistv8.2.2058
Problem: Using mkview/loadview changes the jumplist.
Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the
jumplist. (closes #7371)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 582791af63..a06e8a89da 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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 |