]> source.dussan.org Git - redmine.git/commitdiff
Flush buffer when asking for language (#2948).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 12 Mar 2009 18:11:44 +0000 (18:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 12 Mar 2009 18:11:44 +0000 (18:11 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2573 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/load_default_data.rake

index 4179b9db3ffab17d124a04b449c8e95784c3c027..c213ad79e83a73c60917f2b916a50a29b3e82657 100644 (file)
@@ -10,6 +10,7 @@ namespace :redmine do
       print "Select language: "\r
       print valid_languages.collect(&:to_s).sort.join(", ")\r
       print " [#{current_language}] "\r
+      STDOUT.flush\r
       lang = STDIN.gets.chomp!\r
       break if lang.empty?\r
       break if set_language_if_valid(lang)\r