You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to add a comment to a shell command ":!cmd" or to the ":map" command and a few others (mainly commands that expect expressions), that see the '"' as part of their argument:"
But in handleExSourceCommand, this is not considered:
This was originally discovered in cpeditor/cpeditor#828, where nnoremap <Space>c :norm ggVG"+ is sourced and becomes ggVG without "+.
A quick fix is to detect whether the " is at the start of a WORD, and maybe also add a special check for map. But it will be better if FakeVim can strictly follow how Vim does this.
The text was updated successfully, but these errors were encountered:
As stated in https://vimhelp.org/cmdline.txt.html#:comment:
But in handleExSourceCommand, this is not considered:
FakeVim/fakevim/fakevimhandler.cpp
Lines 6591 to 6594 in 3333aa1
This was originally discovered in cpeditor/cpeditor#828, where
nnoremap <Space>c :norm ggVG"+
is sourced and becomesggVG
without"+
.A quick fix is to detect whether the
"
is at the start of a WORD, and maybe also add a special check formap
. But it will be better if FakeVim can strictly follow how Vim does this.The text was updated successfully, but these errors were encountered: