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

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

[nongnu] elpa/inf-ruby 5143c84f91 189/265: inf-ruby-proc: Fall back to i


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 5143c84f91 189/265: inf-ruby-proc: Fall back to inf-ruby-buffer
Date: Sat, 9 Jul 2022 21:59:25 -0400 (EDT)

branch: elpa/inf-ruby
commit 5143c84f9177dbecd44b781e97b60536424df527
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    inf-ruby-proc: Fall back to inf-ruby-buffer
    
    Fixes #96, the second problem.
---
 inf-ruby.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index ba1ff9be53..a93c3a7d78 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -372,7 +372,8 @@ Runs the hooks `comint-mode-hook' and `inf-ruby-mode-hook'.
 See variable `inf-ruby-buffers'."
   (or (get-buffer-process (if (eq major-mode 'inf-ruby-mode)
                               (current-buffer)
-                            (inf-ruby-buffer)))
+                            (or (inf-ruby-buffer)
+                                inf-ruby-buffer)))
       (error "No current process. See variable inf-ruby-buffers")))
 
 ;; These commands are added to the ruby-mode keymap:



reply via email to

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