aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2023-05-29 21:05:44 +0100
committerTom Dalziel <tom_dl@hotmail.com>2023-05-29 21:11:56 +0100
commitb7bc385a0b41c87133e8e7f3beaca2a97b74b17c (patch)
treece5000c60c61fa9a7509bcef94d1f4c6fa99a92e /evil-common.el
parent1f603b18ac36ce56dcb6e6d2145bc84146e18f61 (diff)
Fix a-word on whitespace-only line
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el
index f772cda..bada299 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -3020,7 +3020,9 @@ linewise, otherwise it is character wise."
(count (abs (or count 1)))
(objbnd (let ((b (bounds-of-thing-at-point thing)))
(and b (< (point) (cdr b)) b)))
- (bnd (or objbnd (evil-bounds-of-not-thing-at-point thing)))
+ (bnd (or objbnd
+ (evil-bounds-of-not-thing-at-point thing)
+ (cons (point-min) (point-max))))
addcurrent other)
;; check if current object is not selected
(when (or (not beg) (not end)