Trim output overwritten by later text or clears completely rather than

only in a few cases. This means we can better track when a line should
wrap. GitHub issue 2537.
This commit is contained in:
nicm
2021-01-29 09:48:43 +00:00
parent 8156d9ba41
commit 255802d8d7
4 changed files with 230 additions and 209 deletions

View File

@ -3038,9 +3038,6 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
format_add_cb(ft, "history_bytes", format_cb_history_bytes);
format_add_cb(ft, "history_all_bytes", format_cb_history_all_bytes);
format_add(ft, "pane_written", "%zu", wp->written);
format_add(ft, "pane_skipped", "%zu", wp->skipped);
if (window_pane_index(wp, &idx) != 0)
fatalx("index not found");
format_add(ft, "pane_index", "%u", idx);