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

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

[elpa] externals/objed 8dc1770 01/34: Stay on at boundary for M-[/] (Fix


From: Stefan Monnier
Subject: [elpa] externals/objed 8dc1770 01/34: Stay on at boundary for M-[/] (Fix #68)
Date: Mon, 15 Mar 2021 22:21:08 -0400 (EDT)

branch: externals/objed
commit 8dc17701d1dc65b5d2113e7ca406136bf612bc9e
Author: Clemens Radermacher <clemera@posteo.net>
Commit: Clemens Radermacher <clemera@posteo.net>

    Stay on at boundary for M-[/] (Fix #68)
---
 objed.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/objed.el b/objed.el
index 6d9d4c7..f1ce9ec 100644
--- a/objed.el
+++ b/objed.el
@@ -1986,7 +1986,7 @@ postitive prefix argument ARG move to the nth previous 
object."
   (if (objed--basic-p)
       (let ((pos (point)))
         (objed-context-object)
-        (if (< (objed--beg) pos (objed--end))
+        (if (<= (objed--beg) pos (objed--end))
             (goto-char (objed--beg))
           (objed--goto-previous (or arg 1))))
     (objed-previous arg)))
@@ -2022,7 +2022,7 @@ postitive prefix argument ARG move to the nth next 
object."
   (if (objed--basic-p)
       (let ((pos (point)))
         (objed-context-object)
-        (if (< (objed--beg) pos (objed--end))
+        (if (<= (objed--beg) pos (objed--end))
             (goto-char (objed--end))
           (objed--goto-next (or arg 1))))
     (objed-next arg)))



reply via email to

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