diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-18 13:06:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-18 13:06:41 +0200 |
commit | 9ec7fa82a2c4f0283862ed704c2940959e6130ee (patch) | |
tree | a4cda9c0f003b8283a8625f245bc4964087e28bb /src/testdir/test_popup.vim | |
parent | cbd3bd6cbed5baf418b037b17ad46e339ff59174 (diff) | |
download | vim-git-9ec7fa82a2c4f0283862ed704c2940959e6130ee.tar.gz |
patch 8.0.0043v8.0.0043
Problem: When using Insert mode completion with 'completeopt' containing
"noinsert" with CTRL-N the change is not saved for undo. (Tommy
Allen)
Solution: Call stop_arrow() before inserting for any key.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index d037b7abd..cc93ff84f 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -427,6 +427,11 @@ func Test_complete_no_undo() call feedkeys("u", 'xt') call assert_equal('bbb', getline(2)) + call feedkeys("A\<Right>\<C-N>\<Esc>", 'xt') + call assert_equal('January', getline(2)) + call feedkeys("u", 'xt') + call assert_equal('bbb', getline(2)) + iunmap <Right> set completeopt& q! |