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

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

[nongnu] elpa/inf-ruby 2ec94b4b33 237/265: Exclude --noreadline when Irb


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 2ec94b4b33 237/265: Exclude --noreadline when Irb version is > 1.2.0
Date: Sat, 9 Jul 2022 21:59:29 -0400 (EDT)

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

    Exclude --noreadline when Irb version is > 1.2.0
    
    Closes #137
---
 inf-ruby.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 2b751967ff..28233e39d6 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -102,9 +102,10 @@ returns a string."
   :group 'inf-ruby)
 
 (defun inf-ruby--irb-command ()
-  (let ((command "irb --prompt default --noreadline -r irb/completion"))
-    (when (inf-ruby--irb-needs-nomultiline-p)
-      (setq command (concat command " --nomultiline")))
+  (let ((command "irb --prompt default -r irb/completion"))
+    (if (inf-ruby--irb-needs-nomultiline-p)
+        (setq command (concat command " --nomultiline"))
+      (setq command (concat command "  --noreadline")))
     command))
 
 (defun inf-ruby--irb-needs-nomultiline-p ()



reply via email to

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