diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-17 20:47:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-17 20:47:02 +0200 |
commit | cbd3bd6cbed5baf418b037b17ad46e339ff59174 (patch) | |
tree | 67dfc5f3df411644c14127d4d19a2ec1889a1c3e /src/testdir/test_popup.vim | |
parent | 869e35270ecffd9024958880cb03f6f0bb01ea93 (diff) | |
download | vim-git-cbd3bd6cbed5baf418b037b17ad46e339ff59174.tar.gz |
patch 8.0.0042v8.0.0042
Problem: When using Insert mode completion with 'completeopt' containing
"noinsert" change is not saved for undo. (Tommy Allen)
Solution: Call stop_arrow() before inserting for pressing Enter.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 38459b323..d037b7abd 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -420,6 +420,13 @@ func Test_complete_no_undo() call feedkeys("u", 'xt') call assert_equal('', getline(2)) + call feedkeys("ibbb\<Esc>0", 'xt') + call assert_equal('bbb', getline(2)) + call feedkeys("A\<Right>\<Down>\<CR>\<Esc>", 'xt') + call assert_equal('January', getline(2)) + call feedkeys("u", 'xt') + call assert_equal('bbb', getline(2)) + iunmap <Right> set completeopt& q! |