diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 10:38:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 10:38:33 +0000 |
commit | 2f5fa4ee9d8fface2e5375ff777320b9613e9b6a (patch) | |
tree | 2c9c78d37e6018fea1e2dddc7c7878711857dc7c | |
parent | db66d851761502bbf567dd1ad0222559819f5882 (diff) | |
download | rtmux-2f5fa4ee9d8fface2e5375ff777320b9613e9b6a.tar.gz rtmux-2f5fa4ee9d8fface2e5375ff777320b9613e9b6a.tar.bz2 rtmux-2f5fa4ee9d8fface2e5375ff777320b9613e9b6a.zip |
Don't hang when clearing line in choose mode now that the cursor stays
at the end with wrap.
-rw-r--r-- | window-choose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/window-choose.c b/window-choose.c index 22078bfd..254cc0a7 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) { |