Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 21893:f19ac9b8b011 v8.2.1496
patch 8.2.1496: Vim9: cannot use " #" in a mapping
Commit: https://github.com/vim/vim/commit/b8a9296cedb9fae35572041ef5cfa894f3ad9fbb
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 20 18:02:47 2020 +0200
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 https://github.com/vim/vim/issues/6746)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Aug 2020 18:15:03 +0200 |
parents | 4be91a7eafb2 |
children | f65e76638eb5 |
comparison
equal
deleted
inserted
replaced
21892:8e6e9c54e4f0 | 21893:f19ac9b8b011 |
---|---|
284 ->Increment() | 284 ->Increment() |
285 assert_equal(111 + 3 + 4 + 5, g:val) | 285 assert_equal(111 + 3 + 4 + 5, g:val) |
286 unlet g:val | 286 unlet g:val |
287 enddef | 287 enddef |
288 | 288 |
289 def Test_map_command() | |
290 let lines =<< trim END | |
291 nnoremap <F3> :echo 'hit F3 #'<CR> | |
292 assert_equal(":echo 'hit F3 #'<CR>", maparg("<F3>", "n")) | |
293 END | |
294 CheckDefSuccess(lines) | |
295 CheckScriptSuccess(['vim9script'] + lines) | |
296 enddef | |
297 | |
289 | 298 |
290 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 299 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |