diff options
author | Christian Brabandt <cb@256bit.org> | 2022-04-09 13:35:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-09 13:35:00 +0100 |
commit | a0f659c76e22108880f857b8961422afc5ed8f5d (patch) | |
tree | 481ee25dadf487548d286d3b61732ec6c22d19cf /src/mark.c | |
parent | cee9c844f27bceaba90362a3fa27a04d4d06c0fd (diff) |
patch 8.2.4719: ">" marker sometimes not displayed in the jumplistv8.2.4719
Problem: ">" marker sometimes not displayed in the jumplist.
Solution: If the buffer no longer exists show "-invalid-". (Christian
Brabandt, closes #10131, closes #10100)
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mark.c b/src/mark.c index fbb4b9a452..e7addbea8e 100644 --- a/src/mark.c +++ b/src/mark.c @@ -871,6 +871,10 @@ ex_jumps(exarg_T *eap UNUSED) { name = fm_getname(&curwin->w_jumplist[i].fmark, 16); + // Make sure to output the current indicator, even when on an wiped + // out buffer. ":filter" may still skip it. + if (name == NULL && i == curwin->w_jumplistidx) + name = vim_strsave((char_u *)"-invalid-"); // apply :filter /pat/ or file name not available if (name == NULL || message_filtered(name)) { |