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

patch 8.2.0612: 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 19:42:10 +02:00
parent faac410409
commit 2c5ed4e330
9 changed files with 96 additions and 19 deletions

View File

@@ -5036,7 +5036,7 @@ ex_gui(exarg_T *eap)
// of the argument ending up after the shell prompt.
msg_clr_eos_force();
#ifdef GUI_MAY_SPAWN
if (!ends_excmd(*eap->arg))
if (!ends_excmd2(eap->cmd, eap->arg))
gui_start(eap->arg);
else
#endif
@@ -5045,7 +5045,7 @@ ex_gui(exarg_T *eap)
channel_gui_register_all();
#endif
}
if (!ends_excmd(*eap->arg))
if (!ends_excmd2(eap->cmd, eap->arg))
ex_next(eap);
}