aboutsummaryrefslogtreecommitdiff
path: root/evil-tests.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2022-04-24 23:07:01 +0100
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-04-25 00:28:05 +0200
commitf75732de0ca5cae70f17dbc4bf7df03cb4ec491f (patch)
treea47311e6decdd44f92749b60d2327ccad6bec4ad /evil-tests.el
parent48404a336850a20ed093fcf78539037c17386235 (diff)
Add `evil-word-object` & `evil-WORD-object` which stay on line
Fixes #834
Diffstat (limited to 'evil-tests.el')
-rw-r--r--evil-tests.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/evil-tests.el b/evil-tests.el
index b1ea72f..5b728e9 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -5936,7 +5936,16 @@ Line 2"))
(evil-test-buffer
"([a])"
("viw")
- "(<[a]>)")))
+ "(<[a]>)"))
+ (ert-info ("Deleting whitespace is confined to the line")
+ (evil-test-buffer
+ "foo\n [ ] bar"
+ ("diw")
+ "foo\n[b]ar")
+ (evil-test-buffer
+ "foo\n [ ] bar"
+ ("diW")
+ "foo\n[b]ar")))
(ert-deftest evil-test-word-objects-cjk ()
"Test `evil-inner-word' and `evil-a-word' on CJK words"