- Fixed bug #511, which caused display problem on Cygwin when colored output
  used the full width of the terminal.  The 'avoidlastcolumn' configuration
  variable forces taskwarrior to never use the last column.
This commit is contained in:
Paul Beckingham 2011-05-30 10:21:50 -04:00
parent a1dee148b4
commit 0f5a4434ff
5 changed files with 20 additions and 4 deletions

View file

@ -61,6 +61,12 @@ int Context::getWidth ()
}
width = terminal_width;
// Ncurses does this, and perhaps we need to as well, to avoid a problem on
// Cygwin where the display goes right up to the terminal width, and causes
// and odd color wrapping problem.
if (config.getBoolean ("avoidlastcolumn"))
--width;
}
return width;