0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.0611: Vim9: no check for space before #comment

Problem:    Vim9: no check for space before #comment.
Solution:   Add space checks.
This commit is contained in:
Bram Moolenaar
2020-04-20 17:46:14 +02:00
parent 08f4157c5c
commit faac410409
5 changed files with 69 additions and 4 deletions

View File

@@ -7903,7 +7903,7 @@ ex_findpat(exarg_T *eap)
p = skipwhite(p);
// Check for trailing illegal characters
if (!ends_excmd(*p))
if (!ends_excmd2(eap->arg, p))
eap->errmsg = e_trailing;
else
eap->nextcmd = check_nextcmd(p);