Mercurial > vim
diff src/testdir/test_excmd.vim @ 20118:252d2bb90394 v8.2.0614
patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'
Commit: https://github.com/vim/vim/commit/ff06f283e3e4b3ec43012dd3b83f8454c98f6639
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 21 22:01:14 2020 +0200
patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'
Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan
Lakshmanan)
Solution: Lock the text while evaluating 'completefunc'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Apr 2020 22:15:04 +0200 |
parents | 12518b40c161 |
children | 6c634e63989c |
line wrap: on
line diff
--- a/src/testdir/test_excmd.vim +++ b/src/testdir/test_excmd.vim @@ -354,15 +354,15 @@ endfunc func Test_run_excmd_with_text_locked() " :quit let cmd = ":\<C-\>eexecute('quit')\<CR>\<C-C>" - call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') + call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') " :qall let cmd = ":\<C-\>eexecute('qall')\<CR>\<C-C>" - call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') + call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') " :exit let cmd = ":\<C-\>eexecute('exit')\<CR>\<C-C>" - call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') + call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') " :close - should be ignored new @@ -370,7 +370,7 @@ func Test_run_excmd_with_text_locked() call assert_equal(2, winnr('$')) close - call assert_fails("call feedkeys(\":\<C-R>=execute('bnext')\<CR>\", 'xt')", 'E523:') + call assert_fails("call feedkeys(\":\<C-R>=execute('bnext')\<CR>\", 'xt')", 'E565:') endfunc " Test for the :verbose command