From 961d3607b9c4782d674acbea77099092d9603ca7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Jan 2014 13:25:28 -0800 Subject: [PATCH] core: add newline to end of download if windows --- lib/vagrant/util/downloader.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/downloader.rb b/lib/vagrant/util/downloader.rb index 6f26447d0..e49c8c39a 100644 --- a/lib/vagrant/util/downloader.rb +++ b/lib/vagrant/util/downloader.rb @@ -1,6 +1,7 @@ require "log4r" require "vagrant/util/busy" +require "vagrant/util/platform" require "vagrant/util/subprocess" module Vagrant @@ -138,7 +139,13 @@ module Vagrant # If we're outputting to the UI, clear the output to # avoid lingering progress meters. - @ui.clear_line if @ui + if @ui + @ui.clear_line + + # Windows doesn't clear properly for some reason, so we just + # output one more newline. + @ui.info("") if Platform.windows? + end # If it didn't exit successfully, we need to parse the data and # show an error message.