diff src/ex_docmd.c @ 21357:72bf1b368cfe v8.2.1229

patch 8.2.1229: build error without the eval feature Commit: https://github.com/vim/vim/commit/6e36b1c18e636549f3424546f2c20101604a2d33 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 17 20:47:51 2020 +0200 patch 8.2.1229: build error without the eval feature Problem: Build error without the eval feature. Solution: Declare starts_with_colon. Make function local.
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jul 2020 21:00:03 +0200
parents fb8c8fcb7b60
children 8992d4f63761
line wrap: on
line diff
--- 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