From 05c668f684e111880b4d15de9ec63c2ba3264ef3 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 9 Sep 2019 08:29:49 -0700 Subject: paste: fix normal-mode paste by different approach #10976 Forcing insert-mode after the first paste-chunk seems to work, as an alternative to a9e2bae0eb69 (insert-before-cursor). NB: Dot-repeat needs to match the original action. Since a9e2bae0eb69 changed paste to insert-before-cursor, dot-repeat must also. But that makes dot-repeat unpleasant/unusual. --- test/functional/terminal/tui_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/functional') diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 2bd114b505..5bd39c72f3 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -319,7 +319,7 @@ describe('TUI', function() {1:x} | {4:~ }| {5:[No Name] [+] 3,1 All}| - :set ruler | + | {3:-- TERMINAL --} | ]] local expected_attr = { @@ -485,9 +485,9 @@ describe('TUI', function() feed_data('\n') -- screen:expect{grid=[[ foo | - typed input..line A | + typed input...line A | line B | - {1:.} | + {1: } | {5:[No Name] [+] }| | {3:-- TERMINAL --} | @@ -512,7 +512,7 @@ describe('TUI', function() | {4:~ }| {5: }| - {8:paste: Error executing lua: vim.lua:195: Vim:E21: }| + {8:paste: Error executing lua: vim.lua:196: Vim:E21: }| {8:Cannot make changes, 'modifiable' is off} | {10:Press ENTER or type command to continue}{1: } | {3:-- TERMINAL --} | -- cgit