comparison src/eval.c @ 18939:25ebc35e104f v8.2.0030

patch 8.2.0030: "gF" does not work on output of "verbose command" Commit: https://github.com/vim/vim/commit/64e74c9cc7d5aab215cf72d9bdd3aac32e128191 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 22 15:38:06 2019 +0100 patch 8.2.0030: "gF" does not work on output of "verbose command" Problem: "gF" does not work on output of "verbose command". Solution: Recognize " line " and translations. (closes https://github.com/vim/vim/issues/5391)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Dec 2019 15:45:03 +0100
parents 3cf9529b3a4a
children 6bd715870e32
comparison
equal deleted inserted replaced
18938:a32de2d96944 18939:25ebc35e104f
5460 case VAR_DICT: 5460 case VAR_DICT:
5461 emsg(_("E728: Using a Dictionary as a Number")); 5461 emsg(_("E728: Using a Dictionary as a Number"));
5462 break; 5462 break;
5463 case VAR_SPECIAL: 5463 case VAR_SPECIAL:
5464 return varp->vval.v_number == VVAL_TRUE ? 1 : 0; 5464 return varp->vval.v_number == VVAL_TRUE ? 1 : 0;
5465 break;
5466 case VAR_JOB: 5465 case VAR_JOB:
5467 #ifdef FEAT_JOB_CHANNEL 5466 #ifdef FEAT_JOB_CHANNEL
5468 emsg(_("E910: Using a Job as a Number")); 5467 emsg(_("E910: Using a Job as a Number"));
5469 break; 5468 break;
5470 #endif 5469 #endif
6145 verbose_enter(); 6144 verbose_enter();
6146 msg_puts(_("\n\tLast set from ")); 6145 msg_puts(_("\n\tLast set from "));
6147 msg_puts((char *)p); 6146 msg_puts((char *)p);
6148 if (script_ctx.sc_lnum > 0) 6147 if (script_ctx.sc_lnum > 0)
6149 { 6148 {
6150 msg_puts(_(" line ")); 6149 msg_puts(_(line_msg));
6151 msg_outnum((long)script_ctx.sc_lnum); 6150 msg_outnum((long)script_ctx.sc_lnum);
6152 } 6151 }
6153 verbose_leave(); 6152 verbose_leave();
6154 vim_free(p); 6153 vim_free(p);
6155 } 6154 }