diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-17 20:47:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-17 20:47:51 +0200 |
commit | 6e36b1c18e636549f3424546f2c20101604a2d33 (patch) | |
tree | 9672c2dba4278a78309ebd10e643d3744d3c9076 /src/ex_docmd.c | |
parent | 203ec7760d255d9f92950c8779ddfc587d7896e0 (diff) | |
download | vim-git-6e36b1c18e636549f3424546f2c20101604a2d33.tar.gz |
patch 8.2.1229: build error without the eval featurev8.2.1229
Problem: Build error without the eval feature.
Solution: Declare starts_with_colon. Make function local.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bb83eba87..91a51681a 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -1649,7 +1649,7 @@ current_tab_nr(tabpage_T *tab) return nr; } - int + static int comment_start(char_u *p, int starts_with_colon UNUSED) { #ifdef FEAT_EVAL @@ -1708,8 +1708,8 @@ do_one_cmd( int save_reg_executing = reg_executing; int ni; // set when Not Implemented char_u *cmd; + int starts_with_colon = FALSE; #ifdef FEAT_EVAL - int starts_with_colon; int starts_with_quote; int vim9script = in_vim9script(); #endif |