summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-14 20:20:04 +0000
committernicm <nicm@openbsd.org>2009-07-14 20:20:04 +0000
commit045d0dbaaaef5d281001a1acea474fd866006344 (patch)
treea6277f8321d826cd5245665b6bec560bab21f2ce
parentFor some reason when clearing status/message it was redrawing the entire client (diff)
downloadwireguard-openbsd-045d0dbaaaef5d281001a1acea474fd866006344.tar.xz
wireguard-openbsd-045d0dbaaaef5d281001a1acea474fd866006344.zip
Add main-pane-height to the options list (was missed before).
-rw-r--r--usr.bin/tmux/cmd-set-window-option.c3
-rw-r--r--usr.bin/tmux/tmux.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-set-window-option.c b/usr.bin/tmux/cmd-set-window-option.c
index d5a29b4ae10..e674e04d5d0 100644
--- a/usr.bin/tmux/cmd-set-window-option.c
+++ b/usr.bin/tmux/cmd-set-window-option.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-set-window-option.c,v 1.4 2009/07/13 23:11:35 nicm Exp $ */
+/* $OpenBSD: cmd-set-window-option.c,v 1.5 2009/07/14 20:20:04 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -56,6 +56,7 @@ const struct set_option_entry set_window_option_table[NSETWINDOWOPTION] = {
SET_OPTION_CHOICE, 0, 0, set_option_clock_mode_style_list },
{ "force-height", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
{ "force-width", SET_OPTION_NUMBER, 0, INT_MAX, NULL },
+ { "main-pane-height", SET_OPTION_NUMBER, 1, INT_MAX, NULL },
{ "main-pane-width", SET_OPTION_NUMBER, 1, INT_MAX, NULL },
{ "mode-attr", SET_OPTION_ATTRIBUTES, 0, 0, NULL },
{ "mode-bg", SET_OPTION_COLOUR, 0, 0, NULL },
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 12b3c11168d..ef69679f150 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.29 2009/07/14 19:03:16 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.30 2009/07/14 20:20:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -942,7 +942,7 @@ struct set_option_entry {
extern const struct set_option_entry set_option_table[];
extern const struct set_option_entry set_window_option_table[];
#define NSETOPTION 26
-#define NSETWINDOWOPTION 19
+#define NSETWINDOWOPTION 20
/* tmux.c */
extern volatile sig_atomic_t sigwinch;