Fix size of rightmost preview section.

This commit is contained in:
nicm 2017-07-07 16:27:26 +00:00
parent 9913cce3ba
commit bfaa885f10

View File

@ -512,7 +512,7 @@ window_tree_draw_session(struct window_tree_modedata *data, struct session *s,
else else
offset = (i * each); offset = (i * each);
if (loop == end - 1) if (loop == end - 1)
width = each - 1 + remaining; width = each + remaining;
else else
width = each - 1; width = each - 1;
@ -638,7 +638,7 @@ window_tree_draw_window(struct window_tree_modedata *data, struct session *s,
else else
offset = (i * each); offset = (i * each);
if (loop == end - 1) if (loop == end - 1)
width = each - 1 + remaining; width = each + remaining;
else else
width = each - 1; width = each - 1;