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

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

[nongnu] elpa/inf-ruby b234625c85: inf-ruby--make-result-overlay: Catch


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby b234625c85: inf-ruby--make-result-overlay: Catch scan-error
Date: Thu, 27 Jun 2024 19:00:20 -0400 (EDT)

branch: elpa/inf-ruby
commit b234625c85a48cc71e7045f5d48f079f410d576a
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    inf-ruby--make-result-overlay: Catch scan-error
    
    Resolves #187
---
 inf-ruby.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 868203223a..2e35c0bf5f 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -591,7 +591,9 @@ the overlay."
           (let* ((beg (if (consp where)
                           (car where)
                        (save-excursion
-                          (backward-sexp 1)
+                          (condition-case nil
+                              (backward-sexp 1)
+                            (scan-error nil))
                           (point))))
                 (end (if (consp where)
                           (cdr where)



reply via email to

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