0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 8.1.0258: not enough testing for the CompleteDone event

Problem:    Not enough testing for the CompleteDone event.
Solution:   Add a test. (closes #3297)
This commit is contained in:
Bram Moolenaar
2018-08-08 22:55:41 +02:00
parent bfde0b482d
commit af559d2c9f
2 changed files with 15 additions and 0 deletions

View File

@@ -262,6 +262,19 @@ function Test_CompleteDoneList()
au! CompleteDone au! CompleteDone
endfunc endfunc
func Test_CompleteDone_undo()
au CompleteDone * call append(0, "prepend1")
new
call setline(1, ["line1", "line2"])
call feedkeys("Go\<C-X>\<C-N>\<CR>\<ESC>", "tx")
call assert_equal(["prepend1", "line1", "line2", "line1", ""],
\ getline(1, '$'))
undo
call assert_equal(["line1", "line2"], getline(1, '$'))
bwipe!
au! CompleteDone
endfunc
" Check that when using feedkeys() typeahead does not interrupt searching for " Check that when using feedkeys() typeahead does not interrupt searching for
" completions. " completions.
func Test_compl_feedkeys() func Test_compl_feedkeys()

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
258,
/**/ /**/
257, 257,
/**/ /**/