branch: elpa/inf-ruby
commit 4714f02bd86d354f99b77868fe39a71fa29b774f
Merge: 03475ac1cc 5f42a70063
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: GitHub <nore...@github.com>

    Merge pull request #174 from bo-tato/fix-ruby-print-result
    
    fix ruby-print-result for pry
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 92045ec692..88c7c9f9e6 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -663,7 +663,7 @@ This function also removes itself from `pre-command-hook'."
                        (looking-at inf-ruby-first-prompt-pattern)))
         (accept-process-output proc))
       (re-search-backward inf-ruby-prompt-pattern)
-      (or (re-search-forward " => " (car comint-last-prompt) t)
+      (or (re-search-forward "[ \n]=> " (car comint-last-prompt) t)
           ;; Evaluation seems to have failed.
           ;; Try to extract the error string.
           (let* ((inhibit-field-text-motion t)

Reply via email to