Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 21941:f65e76638eb5 v8.2.1520
patch 8.2.1520: Vim9: CTRL-] used in :def function does not work
Commit: https://github.com/vim/vim/commit/b3ea36c5bcb88b6a05a66347eedd461e9385103f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 23 21:46:32 2020 +0200
patch 8.2.1520: Vim9: CTRL-] used in :def function does not work
Problem: Vim9: CTRL-] used in :def function does not work.
Solution: Omit count or prepend colon. (closes https://github.com/vim/vim/issues/6769)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Aug 2020 22:00:04 +0200 |
parents | f19ac9b8b011 |
children | 6941d3205be9 |
comparison
equal
deleted
inserted
replaced
21940:fa1bcfaa7897 | 21941:f65e76638eb5 |
---|---|
293 END | 293 END |
294 CheckDefSuccess(lines) | 294 CheckDefSuccess(lines) |
295 CheckScriptSuccess(['vim9script'] + lines) | 295 CheckScriptSuccess(['vim9script'] + lines) |
296 enddef | 296 enddef |
297 | 297 |
298 def Test_normal_command() | |
299 new | |
300 setline(1, 'doesnotexist') | |
301 let caught = 0 | |
302 try | |
303 exe "norm! \<C-]>" | |
304 catch /E433/ | |
305 caught = 2 | |
306 endtry | |
307 assert_equal(2, caught) | |
308 | |
309 try | |
310 exe "norm! 3\<C-]>" | |
311 catch /E433/ | |
312 caught = 3 | |
313 endtry | |
314 assert_equal(3, caught) | |
315 bwipe! | |
316 enddef | |
317 | |
298 | 318 |
299 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 319 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |