Mercurial > vim
diff src/evalvars.c @ 20111:f40231487a49 v8.2.0611
patch 8.2.0611: Vim9: no check for space before #comment
Commit: https://github.com/vim/vim/commit/faac410409a8d693a0326ad9db42dca85419a391
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 20 17:46:14 2020 +0200
patch 8.2.0611: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Apr 2020 18:00:03 +0200 |
parents | fda7bed83eb6 |
children | fadb7f84beff |
line wrap: on
line diff
--- a/src/evalvars.c +++ b/src/evalvars.c @@ -737,7 +737,7 @@ ex_let_const(exarg_T *eap, int is_const) emsg(_(e_invarg)); else if (expr[0] == '.') emsg(_("E985: .= is not supported with script version 2")); - else if (!ends_excmd(*arg)) + else if (!ends_excmd2(eap->cmd, arg)) // ":let var1 var2" arg = list_arg_vars(eap, arg, &first); else if (!eap->skip) @@ -1068,7 +1068,7 @@ list_arg_vars(exarg_T *eap, char_u *arg, char_u *tofree; typval_T tv; - while (!ends_excmd(*arg) && !got_int) + while (!ends_excmd2(eap->cmd, arg) && !got_int) { if (error || eap->skip) {