diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-20 18:02:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-20 18:02:47 +0200 |
commit | b8a9296cedb9fae35572041ef5cfa894f3ad9fbb (patch) | |
tree | 4fc8dd365cd0a7f66a583e0d457b5e13a8252b72 /src/ex_docmd.c | |
parent | df2524bbb495c880d094d9542abf7c23d739cc53 (diff) |
patch 8.2.1496: Vim9: cannot use " #" in a mappingv8.2.1496
Problem: Vim9: cannot use " #" in a mapping.
Solution: Do not remove a comment with the EX_NOTRLCOM flag. (closes #6746)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 233ac1041e..854ff4dfb0 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4604,6 +4604,7 @@ separate_nextcmd(exarg_T *eap) #ifdef FEAT_EVAL || (*p == '#' && in_vim9script() + && !(eap->argt & EX_NOTRLCOM) && p[1] != '{' && p > eap->cmd && VIM_ISWHITE(p[-1])) #endif |