# HG changeset patch # User Christian Brabandt # Date 1533762006 -7200 # Node ID cda216729f9bdd8d5b002242e4f332f0718f34c3 # Parent dae46044a4d2f5e0a96a6cf5b26b09ca71b3ead4 patch 8.1.0258: not enough testing for the CompleteDone event commit https://github.com/vim/vim/commit/af559d2c9f44bc88a7d94f9236b3c024563a8e73 Author: Bram Moolenaar Date: Wed Aug 8 22:55:41 2018 +0200 patch 8.1.0258: not enough testing for the CompleteDone event Problem: Not enough testing for the CompleteDone event. Solution: Add a test. (closes https://github.com/vim/vim/issues/3297) diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -262,6 +262,19 @@ function Test_CompleteDoneList() au! CompleteDone endfunc +func Test_CompleteDone_undo() + au CompleteDone * call append(0, "prepend1") + new + call setline(1, ["line1", "line2"]) + call feedkeys("Go\\\\", "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 " completions. func Test_compl_feedkeys() diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 258, +/**/ 257, /**/ 256,