0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1243: Vim9: cannot have a comment line halfway a list

Problem:    Vim9: cannot have a comment or empty line halfway a list at script
            level.
Solution:   Skip more than one line if needed.
This commit is contained in:
Bram Moolenaar
2020-07-19 14:41:58 +02:00
parent 65b9545f44
commit 75783bd84e
5 changed files with 13 additions and 4 deletions

View File

@@ -1913,7 +1913,7 @@ eval_next_non_blank(char_u *arg, evalarg_T *evalarg, int *getnext)
&& evalarg != NULL
&& (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL)
&& (*arg == NUL || (VIM_ISWHITE(arg[-1])
&& *arg == '#' && arg[1] != '{')))
&& vim9_comment_start(arg))))
{
char_u *p;