# # patch "ui.cc" # from [6e8f75fd303cb80cbb13e08abb0ad4a68b8ceedf] # to [bf5397526968d5189f12fef56ecd4990f622beef] # --- ui.cc +++ ui.cc @@ -78,8 +78,7 @@ { } -/// write_ticks flushes progress line with all tickers to 'clog' - * void tick_write_count::write_ticks() +void tick_write_count::write_ticks() { string tickline = "\rmonotone:"; for (map::const_iterator i = ui.tickers.begin(); @@ -119,7 +118,7 @@ last_tick_len = curr_sz; unsigned int tw = terminal_width(); - if (tickline.size() > tw) + if (tw && tickline.size() > tw) { // first character in tickline is "\r", which does not take up any // width, so we add 1 to compensate.