Set a flag on cells are genuinely empty (cleared and never written to)

and use tty_clear_line (which will choose the best escape sequence) to
clear any batches of cells with that flag when redrawing a line from the
stored screen.
This commit is contained in:
nicm
2019-03-12 23:21:45 +00:00
parent 938156d73b
commit b2bc34af12
3 changed files with 72 additions and 47 deletions

1
tmux.h
View File

@ -579,6 +579,7 @@ enum utf8_state {
#define GRID_FLAG_EXTENDED 0x8
#define GRID_FLAG_SELECTED 0x10
#define GRID_FLAG_NOPALETTE 0x20
#define GRID_FLAG_CLEARED 0x40
/* Grid line flags. */
#define GRID_LINE_WRAPPED 0x1