branch: externals/objed
commit 8dc17701d1dc65b5d2113e7ca406136bf612bc9e
Author: Clemens Radermacher <[email protected]>
Commit: Clemens Radermacher <[email protected]>
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)))