summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-18 17:23:08 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-18 17:23:08 +0000
commit37d34b6b8389e0126a9aac50bf85e3c44e617b37 (patch)
tree0ea64c084c64223713b532aa2adc9585ab24df7e
parent44452823b7e4adb540145ad2c7aa4c32c7a5c6fc (diff)
Don't hang when clearing line in choose mode now that the cursor stays at the
end with wrap.
-rw-r--r--window-choose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c
index 62f729a9..d37527de 100644
--- a/window-choose.c
+++ b/window-choose.c
@@ -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) {