From 2c5ed4e3300378ce76c8d9c3818d6f73e5119f68 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 20 Apr 2020 19:42:10 +0200 Subject: patch 8.2.0612: Vim9: no check for space before #comment Problem: Vim9: no check for space before #comment. Solution: Add space checks. --- src/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui.c') 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); } -- cgit v1.2.1