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-03-22 10:38:33 +00:00
parent db66d85176
commit 2f5fa4ee9d

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) {