commit | b8a9296cedb9fae35572041ef5cfa894f3ad9fbb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Aug 20 18:02:47 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Aug 20 18:02:47 2020 +0200 |
tree | 4fc8dd365cd0a7f66a583e0d457b5e13a8252b72 | |
parent | df2524bbb495c880d094d9542abf7c23d739cc53 [diff] [blame] |
patch 8.2.1496: Vim9: cannot use " #" in a mapping Problem: Vim9: cannot use " #" in a mapping. Solution: Do not remove a comment with the EX_NOTRLCOM flag. (closes #6746)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 233ac10..854ff4d 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -4604,6 +4604,7 @@ #ifdef FEAT_EVAL || (*p == '#' && in_vim9script() + && !(eap->argt & EX_NOTRLCOM) && p[1] != '{' && p > eap->cmd && VIM_ISWHITE(p[-1])) #endif