Flush buffer when asking for language (#2948).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2573 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c7c8dc71f2
commit
b622e0f8ce
|
@ -10,6 +10,7 @@ namespace :redmine do
|
||||||
print "Select language: "
|
print "Select language: "
|
||||||
print valid_languages.collect(&:to_s).sort.join(", ")
|
print valid_languages.collect(&:to_s).sort.join(", ")
|
||||||
print " [#{current_language}] "
|
print " [#{current_language}] "
|
||||||
|
STDOUT.flush
|
||||||
lang = STDIN.gets.chomp!
|
lang = STDIN.gets.chomp!
|
||||||
break if lang.empty?
|
break if lang.empty?
|
||||||
break if set_language_if_valid(lang)
|
break if set_language_if_valid(lang)
|
||||||
|
|
Loading…
Reference in New Issue