diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2022-04-18 11:19:02 +0100 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-04-18 12:24:56 +0200 |
| commit | 76a104dd87252f8b1107fe3fc1d3eb5ae45bcc55 (patch) | |
| tree | 1c74a8b814e15cd51c3549ac5d81f2998b35aa28 | |
| parent | b77bf5ef3ba3b716061c900df46503a78212a431 (diff) | |
Add tests for blockwise visual paste
| -rw-r--r-- | evil-tests.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/evil-tests.el b/evil-tests.el index 65fd8f4..ad47b5d 100644 --- a/evil-tests.el +++ b/evil-tests.el @@ -2926,7 +2926,19 @@ word3[]")) (evil-test-buffer "foo" ("viw" "\"=p(* 6 7)" [return]) - "4[2]"))) + "4[2]")) + (ert-info ("Blockwise visual paste (of charwise text) with count") + (evil-test-buffer + "[a]bc\n123\n123\n123" + ("ye" "jl" "\C-vG" "2p") + "abc\n1[a]bcabc3\n1abcabc3\n1abcabc3" + ("gv") ;; Test point & mark are stored correctly + "abc\n1<abcabc3\n1abcabc3\n1abcab[c]>3")) + (ert-info ("Blockwise visual paste of linewise text") + (evil-test-buffer + "[a]bc\n123\n123\n123" + ("yy" "jl" "\C-vG" "p") + "abc\n1\nabc\n3\n1\nabc\n3\n1\nabc\n3"))) (ert-deftest evil-test-visual-paste-pop () "Test `evil-paste-pop' after visual paste." |
