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

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

[nongnu] elpa/inf-ruby 9f0f79ff45 232/265: inf-ruby-console-rails: Try t


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 9f0f79ff45 232/265: inf-ruby-console-rails: Try to handle IRB's "multiline" thing here
Date: Sat, 9 Jul 2022 21:59:28 -0400 (EDT)

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

    inf-ruby-console-rails: Try to handle IRB's "multiline" thing here
    
    Closes dgutov/robe#126.
---
 inf-ruby.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index e8ef9c0871..2b751967ff 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -861,7 +861,11 @@ automatically."
     (inf-ruby-console-run
      (concat (when with-bundler "bundle exec ")
              "rails console -e "
-             env)
+             env
+             ;; Note: this only has effect in Rails < 5.0 or >= 5.1.4
+             ;; https://github.com/rails/rails/pull/29010
+             (when (inf-ruby--irb-needs-nomultiline-p)
+               " -- --nomultiline"))
      "rails")))
 
 (defun inf-ruby-console-rails-env ()



reply via email to

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