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

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

[elpa] externals/objed 7f575aa 180/216: Fix dispatch, when no object fou


From: Stefan Monnier
Subject: [elpa] externals/objed 7f575aa 180/216: Fix dispatch, when no object found
Date: Tue, 8 Jan 2019 12:29:35 -0500 (EST)

branch: externals/objed
commit 7f575aa7497d036fcc4fc154ef05178e37cf3423
Author: Clemera <address@hidden>
Commit: Clemera <address@hidden>

    Fix dispatch, when no object found
---
 objed.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/objed.el b/objed.el
index b618a02..d40d886 100644
--- a/objed.el
+++ b/objed.el
@@ -526,8 +526,8 @@ update to given object."
                           (not (region-active-p)))
                      (or (objed--mark-all-inside 'defun)
                          (objed--mark-all-inside 'buffer)))
-                     (t (objed--switch-to name)
-                        (goto-char (objed--beg)))))))))
+                     (t (when (objed--switch-to name)
+                          (goto-char (objed--beg))))))))))
 
 
 (defun objed--switch-to-object-for-cmd (cmd)



reply via email to

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