From 506423b51003585b83474f6a7d0ef7140e742972 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Tue, 21 Nov 2017 21:55:31 -0300 Subject: Prompt treated the same with or without readline --- lib/highline/question.rb | 2 +- lib/highline/terminal.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1