mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
a1dee148b4
commit
0f5a4434ff
5 changed files with 20 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue