summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-20 19:42:10 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-20 19:42:10 +0200
commit2c5ed4e3300378ce76c8d9c3818d6f73e5119f68 (patch)
tree1fa5e72a63e160710ee6fd59fef09c8f334d0808 /src/gui.c
parentfaac410409a8d693a0326ad9db42dca85419a391 (diff)
downloadvim-git-2c5ed4e3300378ce76c8d9c3818d6f73e5119f68.tar.gz
patch 8.2.0612: Vim9: no check for space before #commentv8.2.0612
Problem: Vim9: no check for space before #comment. Solution: Add space checks.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index cdfc929e9..595904327 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -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);
}