mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 8.2.4719: ">" marker sometimes not displayed in the jumplist
Problem: ">" marker sometimes not displayed in the jumplist. Solution: If the buffer no longer exists show "-invalid-". (Christian Brabandt, closes #10131, closes #10100)
This commit is contained in:
committed by
Bram Moolenaar
parent
cee9c844f2
commit
a0f659c76e
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user