Don't hang when clearing line in choose mode now that the cursor stays at the

end with wrap.
This commit is contained in:
Nicholas Marriott 2013-02-18 17:23:08 +00:00
parent 44452823b7
commit 37d34b6b83

View File

@ -753,7 +753,7 @@ window_choose_write_line(
(item->wcd->type & TREE_SESSION) ?
(item->state & TREE_EXPANDED ? "-" : "+") : "", item->name);
}
while (s->cx < screen_size_x(s))
while (s->cx < screen_size_x(s) - 1)
screen_write_putc(ctx, &gc, ' ');
if (data->input_type != WINDOW_CHOOSE_NORMAL) {