diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-20 19:42:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-20 19:42:10 +0200 |
commit | 2c5ed4e3300378ce76c8d9c3818d6f73e5119f68 (patch) | |
tree | 1fa5e72a63e160710ee6fd59fef09c8f334d0808 /src/highlight.c | |
parent | faac410409a8d693a0326ad9db42dca85419a391 (diff) |
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/highlight.c')
-rw-r--r-- | src/highlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highlight.c b/src/highlight.c index ee2e43754d..9476a7ddac 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 |