From 9ec7fa82a2c4f0283862ed704c2940959e6130ee Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 18 Oct 2016 13:06:41 +0200 Subject: 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. --- src/testdir/test_popup.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/testdir/test_popup.vim') 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\\\", 'xt') + call assert_equal('January', getline(2)) + call feedkeys("u", 'xt') + call assert_equal('bbb', getline(2)) + iunmap set completeopt& q! -- cgit v1.2.1