1
0
forked from aniani/vim

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:
Bram Moolenaar
2020-08-20 18:02:47 +02:00
parent df2524bbb4
commit b8a9296ced
4 changed files with 13 additions and 0 deletions

View File

@@ -286,5 +286,14 @@ def Test_eval_command()
unlet g:val
enddef
def Test_map_command()
let lines =<< trim END
nnoremap <F3> :echo 'hit F3 #'<CR>
assert_equal(":echo 'hit F3 #'<CR>", maparg("<F3>", "n"))
END
CheckDefSuccess(lines)
CheckScriptSuccess(['vim9script'] + lines)
enddef
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker