diff src/mark.c @ 28388:320991d9812e v8.2.4719

patch 8.2.4719: ">" marker sometimes not displayed in the jumplist Commit: https://github.com/vim/vim/commit/a0f659c76e22108880f857b8961422afc5ed8f5d Author: Christian Brabandt <cb@256bit.org> Date: Sat Apr 9 13:35:00 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Apr 2022 14:45:05 +0200
parents f70015784777
children da56650de132
line wrap: on
line diff
--- 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))
 	    {