Bug #511
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user