diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-01 08:50:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-01 08:50:15 +0000 |
commit | 182bd331eeed8faf4d3c523552c06794f21185a4 (patch) | |
tree | a880905c52973b1070de18ec75597ceab2dac999 /usr.bin | |
parent | c10001a9ca3b5e071f0a16b397457f7fbfedd577 (diff) |
Only print below number when there is enough space.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-display-panes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-display-panes.c b/usr.bin/tmux/cmd-display-panes.c index a7a743d39d4..9996bbfc02a 100644 --- a/usr.bin/tmux/cmd-display-panes.c +++ b/usr.bin/tmux/cmd-display-panes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-display-panes.c,v 1.36 2020/09/01 08:48:26 nicm Exp $ */ +/* $OpenBSD: cmd-display-panes.c,v 1.37 2020/09/01 08:50:14 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -168,7 +168,7 @@ cmd_display_panes_draw_pane(struct screen_redraw_ctx *ctx, px += 6; } - if (sy < 6) + if (sy <= 6) goto out; tty_attributes(tty, &fgc, &grid_default_cell, NULL); if (rlen != 0 && sx >= rlen) { |