From 6bff371e3cce703ffc2a9c0df7c89d361e4ebf00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 19 Apr 2016 21:59:15 +0200 Subject: test/vis: add test for :wq in normal mode with multiple cursors This tests for a previous bug martanne/vis#276 where only part of the file was saved. Based on a patch from Tobias Mansfield-Williams. --- vis/multiple-cursors/normal-mode-wq.in | 4 ++++ vis/multiple-cursors/normal-mode-wq.keys | 4 ++++ vis/multiple-cursors/normal-mode-wq.ref | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 vis/multiple-cursors/normal-mode-wq.in create mode 100644 vis/multiple-cursors/normal-mode-wq.keys create mode 100644 vis/multiple-cursors/normal-mode-wq.ref diff --git a/vis/multiple-cursors/normal-mode-wq.in b/vis/multiple-cursors/normal-mode-wq.in new file mode 100644 index 0000000..b2a41f8 --- /dev/null +++ b/vis/multiple-cursors/normal-mode-wq.in @@ -0,0 +1,4 @@ +1: first +2: second +3: third +4: fourth diff --git a/vis/multiple-cursors/normal-mode-wq.keys b/vis/multiple-cursors/normal-mode-wq.keys new file mode 100644 index 0000000..f8974a8 --- /dev/null +++ b/vis/multiple-cursors/normal-mode-wq.keys @@ -0,0 +1,4 @@ +vGI /* create cursor at start of every line */ + /* move primary cursor up */ + /* remove primary cursor */ +i /* switch to insert mode, so that after test leaves cursors active */ diff --git a/vis/multiple-cursors/normal-mode-wq.ref b/vis/multiple-cursors/normal-mode-wq.ref new file mode 100644 index 0000000..b2a41f8 --- /dev/null +++ b/vis/multiple-cursors/normal-mode-wq.ref @@ -0,0 +1,4 @@ +1: first +2: second +3: third +4: fourth -- cgit v1.2.3