comparison src/testdir/test_cmdline.vim @ 13600:75e35ebdb7a4 v8.0.1672

patch 8.0.1672: error during completion causes command to be cancelled commit https://github.com/vim/vim/commit/72532d354e699f1cceec34c0b08e1de4d3ea9641 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 7 19:09:09 2018 +0200 patch 8.0.1672: error during completion causes command to be cancelled Problem: Error during completion causes command to be cancelled. Solution: Reset did_emsg before waiting for another character. (Tom M.)
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Apr 2018 19:15:05 +0200
parents 1fd0f8392946
children 1f95ec5de238
comparison
equal deleted inserted replaced
13599:1212b1877959 13600:75e35ebdb7a4
314 call assert_equal('"aaa a;b-c*d bbb', @:) 314 call assert_equal('"aaa a;b-c*d bbb', @:)
315 315
316 call feedkeys(":\<C-\>etoupper(getline(1))\<CR>\<C-B>\"\<CR>", 'tx') 316 call feedkeys(":\<C-\>etoupper(getline(1))\<CR>\<C-B>\"\<CR>", 'tx')
317 call assert_equal('"ASDF.X /TMP/SOME VERYLONGWORD A;B-C*D ', @:) 317 call assert_equal('"ASDF.X /TMP/SOME VERYLONGWORD A;B-C*D ', @:)
318 bwipe! 318 bwipe!
319
320 " Error while typing a command used to cause that it was not executed
321 " in the end.
322 new
323 try
324 call feedkeys(":file \<C-R>%Xtestfile\<CR>", 'tx')
325 catch /^Vim\%((\a\+)\)\=:E32/
326 " ignore error E32
327 endtry
328 call assert_equal("Xtestfile", bufname("%"))
329 bwipe!
319 endfunc 330 endfunc
320 331
321 func Test_remove_char_in_cmdline() 332 func Test_remove_char_in_cmdline()
322 call feedkeys(":abc def\<S-Left>\<Del>\<C-B>\"\<CR>", 'tx') 333 call feedkeys(":abc def\<S-Left>\<Del>\<C-B>\"\<CR>", 'tx')
323 call assert_equal('"abc ef', @:) 334 call assert_equal('"abc ef', @:)