aboutsummaryrefslogtreecommitdiff
path: root/evil-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'evil-tests.el')
-rw-r--r--evil-tests.el17
1 files changed, 16 insertions, 1 deletions
diff --git a/evil-tests.el b/evil-tests.el
index 28cde32..0c56862 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -7108,7 +7108,22 @@ if no previous selection")
;;[ ]>and for Lisp evaluation."
([escape] "gv")
"<;; This buffer is for notes,
-;;[ ]>and for Lisp evaluation.")))
+;;[ ]>and for Lisp evaluation.")
+ (ert-info ("After paste shifts initially selected text")
+ (evil-test-buffer
+ :visual block
+ "<1\n2\n[3]>"
+ ("yP")
+ "[1]1\n22\n33"
+ ("gvr*")
+ "[*]1\n*2\n*3")))
+ (ert-info ("Restore linewise visually-pasted selection")
+ (evil-test-buffer
+ "[a]lpha bravo\ncharlie delta
+echo foxtrot\ngolf hotel"
+ ("2yy" "++" "Vp" "gv")
+ "alpha bravo\ncharlie delta
+<alpha bravo\ncharlie delta\n>golf hotel")))
;;; Replace state