diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-22 10:38:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-22 10:38:34 +0000 |
commit | 9abe833a38967d8916249682b4b8e99fd556542b (patch) | |
tree | 061996e95553d1f5e0849441861eda6e4575152b | |
parent | 4b6ba2c64cae01d30da42a05e4153f31c9e49918 (diff) |
Don't hang when clearing line in choose mode now that the cursor stays
at the end with wrap.
-rw-r--r-- | usr.bin/tmux/window-choose.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c index e3cf9d7fdd3..c55a6d3c8fe 100644 --- a/usr.bin/tmux/window-choose.c +++ b/usr.bin/tmux/window-choose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-choose.c,v 1.39 2013/03/22 10:31:22 nicm Exp $ */ +/* $OpenBSD: window-choose.c,v 1.40 2013/03/22 10:38:33 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) { |