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

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

[nongnu] elpa/meow 369014fd92: meow-command: fix behavior of meow-next-t


From: ELPA Syncer
Subject: [nongnu] elpa/meow 369014fd92: meow-command: fix behavior of meow-next-thing (#615)
Date: Fri, 12 Jul 2024 19:00:36 -0400 (EDT)

branch: elpa/meow
commit 369014fd92e44f4cec54a78fa9be11d35b44f277
Author: Udayvir Singh <97400310+udayvir-singh@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    meow-command: fix behavior of meow-next-thing (#615)
    
    Fixes regression from #596. Picks between a bound and the mark correctly 
when the mark is within bounds of the thing being selected.
---
 meow-command.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meow-command.el b/meow-command.el
index 32ff5bed65..b9b6054202 100644
--- a/meow-command.el
+++ b/meow-command.el
@@ -807,8 +807,8 @@ This will shrink the word selection only contains
        (1- pos)))
     (let ((bounds (bounds-of-thing-at-point thing)))
       (if (> mark pos)
-          (cdr bounds)
-        (car bounds)))))
+          (min mark (cdr bounds))
+        (max mark (car bounds))))))
 
 (defun meow-next-thing (thing type n)
   "Create non-expandable selection of TYPE to the end of the next Nth THING.



reply via email to

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