comparison src/eval.c @ 28743:cf6bba7a9b0f v8.2.4896

patch 8.2.4896: expression in command block does not look after NL Commit: https://github.com/vim/vim/commit/a13e7acba9928a9c5e97be28946418d8d4323988 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 6 21:24:31 2022 +0100 patch 8.2.4896: expression in command block does not look after NL Problem: Expression in command block does not look after NL when command is typed. Solution: Skip over NL also when not in a script. (closes #10358)
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 May 2022 22:30:02 +0200
parents 723c7d940cba
children 67f005ab37d7
comparison
equal deleted inserted replaced
28742:0b11342bb900 28743:cf6bba7a9b0f
2173 char_u *p = skipwhite(arg); 2173 char_u *p = skipwhite(arg);
2174 2174
2175 *getnext = FALSE; 2175 *getnext = FALSE;
2176 if (in_vim9script() 2176 if (in_vim9script()
2177 && evalarg != NULL 2177 && evalarg != NULL
2178 && (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL) 2178 && (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL
2179 || *p == NL)
2179 && (*p == NUL || *p == NL 2180 && (*p == NUL || *p == NL
2180 || (vim9_comment_start(p) && VIM_ISWHITE(p[-1])))) 2181 || (vim9_comment_start(p) && VIM_ISWHITE(p[-1]))))
2181 { 2182 {
2182 char_u *next; 2183 char_u *next;
2183 2184