comparison 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
comparison
equal deleted inserted replaced
28387:eb8ad882fa29 28388:320991d9812e
869 { 869 {
870 if (curwin->w_jumplist[i].fmark.mark.lnum != 0) 870 if (curwin->w_jumplist[i].fmark.mark.lnum != 0)
871 { 871 {
872 name = fm_getname(&curwin->w_jumplist[i].fmark, 16); 872 name = fm_getname(&curwin->w_jumplist[i].fmark, 16);
873 873
874 // Make sure to output the current indicator, even when on an wiped
875 // out buffer. ":filter" may still skip it.
876 if (name == NULL && i == curwin->w_jumplistidx)
877 name = vim_strsave((char_u *)"-invalid-");
874 // apply :filter /pat/ or file name not available 878 // apply :filter /pat/ or file name not available
875 if (name == NULL || message_filtered(name)) 879 if (name == NULL || message_filtered(name))
876 { 880 {
877 vim_free(name); 881 vim_free(name);
878 continue; 882 continue;