emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil 1f603b18ac: Default to (point-min . point-max) for bn


From: ELPA Syncer
Subject: [nongnu] elpa/evil 1f603b18ac: Default to (point-min . point-max) for bnd
Date: Mon, 29 May 2023 16:00:13 -0400 (EDT)

branch: elpa/evil
commit 1f603b18ac36ce56dcb6e6d2145bc84146e18f61
Author: Tom Dalziel <tom_dl@hotmail.com>
Commit: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>

    Default to (point-min . point-max) for bnd
---
 evil-common.el | 3 ++-
 evil-tests.el  | 7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/evil-common.el b/evil-common.el
index c9d247e3b4..f772cda915 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))
diff --git a/evil-tests.el b/evil-tests.el
index 601bacc955..34850d76ca 100644
--- a/evil-tests.el
+++ b/evil-tests.el
@@ -6142,7 +6142,12 @@ Line 2"))
       (evil-test-buffer
         "   foo   [b]ar"
         ("daw")
-        "   fo[o]"))))
+        "   fo[o]")))
+  (ert-info ("Deleting whitespace on whitepsace only line")
+    (evil-test-buffer
+      "foo\n[ ]\nbar"
+      ("diw")
+      "foo\n[]\nbar")))
 
 (ert-deftest evil-test-word-objects-cjk ()
   "Test `evil-inner-word' and `evil-a-word' on CJK words"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]