summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-09-01 08:50:14 +0000
committernicm <nicm@openbsd.org>2020-09-01 08:50:14 +0000
commit33491e3270b4d45ebd37db8ed926f5d0e7152043 (patch)
treeeea4cf5e9e6c2be34cb6c11b6847244bbcabef7e
parentAllow a-z keys for display-panes to jump to higher numbered panes. (diff)
downloadwireguard-openbsd-33491e3270b4d45ebd37db8ed926f5d0e7152043.tar.xz
wireguard-openbsd-33491e3270b4d45ebd37db8ed926f5d0e7152043.zip
Only print below number when there is enough space.
-rw-r--r--usr.bin/tmux/cmd-display-panes.c4
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) {