diff src/testdir/test_popup.vim @ 10293:0bf1d211e441 v8.0.0043

commit https://github.com/vim/vim/commit/9ec7fa82a2c4f0283862ed704c2940959e6130ee Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 18 13:06:41 2016 +0200 patch 8.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.
author Christian Brabandt <cb@256bit.org>
date Tue, 18 Oct 2016 13:15:05 +0200
parents d9bd03a0d70f
children c1cfdf43560c
line wrap: on
line diff
--- 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!