aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2023-05-29 20:35:12 +0100
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2023-05-29 21:50:18 +0200
commit1f603b18ac36ce56dcb6e6d2145bc84146e18f61 (patch)
tree49f65cce2a196c007f3788d983d68be36590bb06 /evil-common.el
parentc3ae7ef6a4d43dd950dcaf846239dd8705c7364b (diff)
Default to (point-min . point-max) for bnd
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el
index c9d247e..f772cda 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -2972,7 +2972,8 @@ linewise, otherwise it is character wise."
(let* ((count (or count 1))
(bnd (or (let ((b (bounds-of-thing-at-point thing)))
(and b (< (point) (cdr b)) b))
- (evil-bounds-of-not-thing-at-point thing))))
+ (evil-bounds-of-not-thing-at-point thing)
+ (cons (point-min) (point-max)))))
;; check if current object is selected
(when (or (not beg) (not end)
(> beg (car bnd))