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/highlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/highlight.c') diff --git a/src/highlight.c b/src/highlight.c index ee2e43754..9476a7dda 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -658,7 +658,7 @@ do_highlight( /* * If no argument, list current highlighting. */ - if (ends_excmd(*line)) + if (!init && ends_excmd2(line - 1, line)) { for (i = 1; i <= highlight_ga.ga_len && !got_int; ++i) // TODO: only call when the group has attributes set -- cgit v1.2.1