diff --git a/src/statusbar.cpp b/src/statusbar.cpp index 1f0159db..758b9b8f 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -172,14 +172,17 @@ void Statusbar::print(int delay, const std::string &message) { if (statusbar_allow_unlock) { - statusbar_lock_time = Global::Timer; - statusbar_lock_delay = boost::posix_time::seconds(delay); - if (Config.statusbar_visibility) - statusbar_block_update = true; - else - progressbar_block_update = true; - wFooter->goToXY(0, Config.statusbar_visibility); - *wFooter << message << NC::TermManip::ClearToEOL; + if(delay) + { + statusbar_lock_time = Global::Timer; + statusbar_lock_delay = boost::posix_time::seconds(delay); + if (Config.statusbar_visibility) + statusbar_block_update = true; + else + progressbar_block_update = true; + wFooter->goToXY(0, Config.statusbar_visibility); + *wFooter << message << NC::TermManip::ClearToEOL; + } wFooter->refresh(); } }