aboutsummaryrefslogtreecommitdiff
path: root/evil-tests.el
diff options
context:
space:
mode:
authorAxel Forsman <axelsfor@gmail.com>2023-05-29 23:41:06 +0200
committerGitHub <noreply@github.com>2023-05-29 23:41:06 +0200
commit2a80de388f05af10edd24aecd0de2f514f75d1ff (patch)
tree69b746c2b5105600c9e9d7ca774a472e147f204d /evil-tests.el
parentb7bc385a0b41c87133e8e7f3beaca2a97b74b17c (diff)
Fix pasting in visual block mode (#1786)
Co-authored-by: Tom Dalziel <tom_dl@hotmail.com>
Diffstat (limited to 'evil-tests.el')
-rw-r--r--evil-tests.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/evil-tests.el b/evil-tests.el
index da47938..f3e928f 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -3039,10 +3039,13 @@ word3[]"))
("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")))
+ (evil-test-buffer "[a]bc\n123\n123"
+ ("yy" "jl" "\C-vj" "p")
+ "abc\n13\n13\nabc"))
+ (ert-info ("Blockwise visual paste of blockwise text")
+ (evil-test-buffer "xy\n[z]\n123\n123"
+ ("\C-vkly2jl\C-vjp")
+ "xy\nz\n1xy3\n1z 3")))
(ert-deftest evil-test-visual-paste-pop ()
"Test `evil-paste-pop' after visual paste."