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

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

[elpa] externals/objed 92fd6e7 135/216: Fix marking instances in objects


From: Stefan Monnier
Subject: [elpa] externals/objed 92fd6e7 135/216: Fix marking instances in objects not surrounding point
Date: Tue, 8 Jan 2019 12:29:27 -0500 (EST)

branch: externals/objed
commit 92fd6e7a302dffff9356582edc1322ae6519cddf
Author: Clemera <address@hidden>
Commit: Clemera <address@hidden>

    Fix marking instances in objects not surrounding point
---
 objed.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/objed.el b/objed.el
index 1e3e597..bb15cf3 100644
--- a/objed.el
+++ b/objed.el
@@ -982,7 +982,9 @@ Use `objed-define-dispatch' to define a dispatch command.")
     (save-restriction
       ;; narrow to object we search for objects in
       (when (objed--save-state
-             (when (objed--switch-to name)
+             (when (and (objed--switch-to name)
+                        ;; make sure we found one sourrounding point
+                        (< (objed--min) (point) (objed--max)))
                (narrow-to-region (objed--min) (objed--max))
                (goto-char (point-min))))
         ;; objed-mark-object



reply via email to

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