From cbd3bd6cbed5baf418b037b17ad46e339ff59174 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 17 Oct 2016 20:47:02 +0200 Subject: patch 8.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. --- src/testdir/test_popup.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/testdir/test_popup.vim') 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\0", '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