diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-11-21 21:55:31 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-11-21 21:55:31 -0300 |
commit | 506423b51003585b83474f6a7d0ef7140e742972 (patch) | |
tree | d5e0241a49bd1225b26af3577e86a797786658de | |
parent | 5365cf25258de79f3d6bdbd57aac42cdb1fc05f7 (diff) | |
download | highline-506423b51003585b83474f6a7d0ef7140e742972.tar.gz |
Prompt treated the same with or without readline
-rwxr-xr-x | lib/highline/question.rb | 2 | ||||
-rwxr-xr-x | lib/highline/terminal.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/question.rb b/lib/highline/question.rb index 27b18b4..6dd1293 100755 --- a/lib/highline/question.rb +++ b/lib/highline/question.rb @@ -575,7 +575,7 @@ class HighLine # @param highline [HighLine] context # @return [void] def show_question(highline) - highline.say(self) unless readline && (echo == true && !limit) + highline.say(self) end # Returns an echo string that is adequate for this Question settings. diff --git a/lib/highline/terminal.rb b/lib/highline/terminal.rb index cd1d3dc..0aecdc4 100755 --- a/lib/highline/terminal.rb +++ b/lib/highline/terminal.rb @@ -126,7 +126,7 @@ class HighLine $VERBOSE = nil raw_answer = run_preserving_stty do - Readline.readline(prompt, true) + Readline.readline("", true) end $VERBOSE = old_verbose |