comparison src/ex_docmd.c @ 28433:367439b95aba v8.2.4741

patch 8.2.4741: startup test fails Commit: https://github.com/vim/vim/commit/60895f3e36def9beb7d5463e792e5154ad9a7a0a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 12 14:23:19 2022 +0100 patch 8.2.4741: startup test fails Problem: Startup test fails. Solution: Avoid an error for verbose expansion. Fix that the "0verbose" command modifier doesn't work.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 15:30:05 +0200
parents 2655935b5ccc
children 4dcccb2673fe
comparison
equal deleted inserted replaced
28432:5e295771ba24 28433:367439b95aba
3082 continue; 3082 continue;
3083 } 3083 }
3084 if (!checkforcmd_noparen(&p, "verbose", 4)) 3084 if (!checkforcmd_noparen(&p, "verbose", 4))
3085 break; 3085 break;
3086 if (vim_isdigit(*eap->cmd)) 3086 if (vim_isdigit(*eap->cmd))
3087 {
3087 cmod->cmod_verbose = atoi((char *)eap->cmd); 3088 cmod->cmod_verbose = atoi((char *)eap->cmd);
3089 if (cmod->cmod_verbose == 0)
3090 cmod->cmod_verbose = -1;
3091 }
3088 else 3092 else
3089 cmod->cmod_verbose = 1; 3093 cmod->cmod_verbose = 1;
3090 eap->cmd = p; 3094 eap->cmd = p;
3091 continue; 3095 continue;
3092 } 3096 }
3156 { 3160 {
3157 ++sandbox; 3161 ++sandbox;
3158 cmod->cmod_did_sandbox = TRUE; 3162 cmod->cmod_did_sandbox = TRUE;
3159 } 3163 }
3160 #endif 3164 #endif
3161 if (cmod->cmod_verbose > 0) 3165 if (cmod->cmod_verbose != 0)
3162 { 3166 {
3163 if (cmod->cmod_verbose_save == 0) 3167 if (cmod->cmod_verbose_save == 0)
3164 cmod->cmod_verbose_save = p_verbose + 1; 3168 cmod->cmod_verbose_save = p_verbose + 1;
3165 p_verbose = cmod->cmod_verbose; 3169 p_verbose = cmod->cmod_verbose < 0 ? 0 : cmod->cmod_verbose;
3166 } 3170 }
3167 3171
3168 if ((cmod->cmod_flags & (CMOD_SILENT | CMOD_UNSILENT)) 3172 if ((cmod->cmod_flags & (CMOD_SILENT | CMOD_UNSILENT))
3169 && cmod->cmod_save_msg_silent == 0) 3173 && cmod->cmod_save_msg_silent == 0)
3170 { 3174 {
8997 * "<cWORD>" to WORD under the cursor 9001 * "<cWORD>" to WORD under the cursor
8998 * "<cexpr>" to C-expression under the cursor 9002 * "<cexpr>" to C-expression under the cursor
8999 * "<cfile>" to path name under the cursor 9003 * "<cfile>" to path name under the cursor
9000 * "<sfile>" to sourced file name 9004 * "<sfile>" to sourced file name
9001 * "<stack>" to call stack 9005 * "<stack>" to call stack
9006 * "<script>" to current script name
9002 * "<slnum>" to sourced file line number 9007 * "<slnum>" to sourced file line number
9003 * "<afile>" to file name for autocommand 9008 * "<afile>" to file name for autocommand
9004 * "<abuf>" to buffer number for autocommand 9009 * "<abuf>" to buffer number for autocommand
9005 * "<amatch>" to matching name for autocommand 9010 * "<amatch>" to matching name for autocommand
9006 * 9011 *