mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user