summaryrefslogtreecommitdiff
path: root/test/evil-surround-test.el
diff options
context:
space:
mode:
authorninrod <filipe.silva@gmail.com>2019-12-17 08:31:51 -0300
committerninrod <filipe.silva@gmail.com>2019-12-17 08:31:51 -0300
commit9b0b17f06cef9bac81ee4800d121265e54718a17 (patch)
tree091fc2b7a74b80b58bf2e6a5e9205fb194a695ae /test/evil-surround-test.el
parentee61a652003538675e00042b99fd2c03aa43a746 (diff)
parentb670e5f338175a1cbeaa1f0c16296f357adf1625 (diff)
merge @jamesnvc PRs #160 and #1621.1.0
- fix some bugs in macro use cases: #161 and #159
Diffstat (limited to 'test/evil-surround-test.el')
-rw-r--r--test/evil-surround-test.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index a93bd7a..2f40d4a 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -253,3 +253,18 @@
"[w]ord"
("ysiwb")
"[(]word)")))
+
+(ert-deftest evil-surround-tag-from-macro ()
+ (ert-info ("tag surround in macro")
+ (save-window-excursion
+ (with-current-buffer (get-buffer-create "*evil-surround-tag-from-macro*")
+ (switch-to-buffer-other-window (current-buffer))
+ (insert "foo\nbar\nbaz\n")
+ (goto-char (point-min))
+ (evil-mode 1)
+ (turn-on-evil-surround-mode)
+ (execute-kbd-macro
+ "yse<div>f>lysit$j_")
+ (should
+ (string= "<div>$foo$</div>\nbar\nbaz\n"
+ (buffer-substring-no-properties (point-min) (point-max))))))))