diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-17 21:53:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-17 21:53:58 +0100 |
commit | e08aee60abc59f517d3e263fdb9ba4a0196d507c (patch) | |
tree | c3642a1a0df680560697deed56def42ef404445b /src/mark.c | |
parent | 39c47c310487b72bc78ff197b5a068a0bcf830de (diff) |
patch 8.2.3532: the previous '' mark is restored after moving the cursorv8.2.3532
Problem: The previous '' mark is restored after moving the cursor to the
original jump position. (Tony Chen)
Solution: Forget the previous position after checking. (closes #8985)
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mark.c b/src/mark.c index d606763121..c708e07e48 100644 --- a/src/mark.c +++ b/src/mark.c @@ -181,10 +181,8 @@ checkpcmark(void) if (curwin->w_prev_pcmark.lnum != 0 && (EQUAL_POS(curwin->w_pcmark, curwin->w_cursor) || curwin->w_pcmark.lnum == 0)) - { curwin->w_pcmark = curwin->w_prev_pcmark; - curwin->w_prev_pcmark.lnum = 0; // Show it has been checked - } + curwin->w_prev_pcmark.lnum = 0; // it has been checked } #if defined(FEAT_JUMPLIST) || defined(PROTO) |