summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-04-01 13:21:38 +0000
committernicm <nicm@openbsd.org>2012-04-01 13:21:38 +0000
commitb812f049a8c39bc4b6f97e8bc6386a00482a1bc4 (patch)
tree1cb1c7612a36bbc123b7e4a89bd8ec7aef407c27
parentAdd a layout history which can be stepped through with select-layout -u (diff)
downloadwireguard-openbsd-b812f049a8c39bc4b6f97e8bc6386a00482a1bc4.tar.xz
wireguard-openbsd-b812f049a8c39bc4b6f97e8bc6386a00482a1bc4.zip
Fix option name.
-rw-r--r--usr.bin/tmux/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c
index 69e1a3215ee..2b453d5678f 100644
--- a/usr.bin/tmux/layout.c
+++ b/usr.bin/tmux/layout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout.c,v 1.11 2012/04/01 13:18:38 nicm Exp $ */
+/* $OpenBSD: layout.c,v 1.12 2012/04/01 13:21:38 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -772,7 +772,7 @@ layout_list_add(struct window *w)
w->layout_list_size++;
w->layout_list_last = ll;
- limit = options_get_number(&w->options, "layout-history");
+ limit = options_get_number(&w->options, "layout-history-limit");
while (w->layout_list_size > limit) {
ll = TAILQ_LAST(&w->layout_list, last_layouts);
if (ll == w->layout_list_last)