Revision: 2587
http://tmux.svn.sourceforge.net/tmux/?rev=2587&view=rev
Author: tcunha
Date: 2011-08-25 21:13:45 +0000 (Thu, 25 Aug 2011)
Log Message:
-----------
Sync OpenBSD patchset 950:
Add pane-base-index option, from Ben Barbour.
Modified Paths:
--------------
trunk/options-table.c
trunk/tmux.1
trunk/window.c
Modified: trunk/options-table.c
===================================================================
--- trunk/options-table.c 2011-08-25 21:12:52 UTC (rev 2586)
+++ trunk/options-table.c 2011-08-25 21:13:45 UTC (rev 2587)
@@ -522,6 +522,13 @@
.default_num = 0
},
+ { .name = "pane-base-index",
+ .type = OPTIONS_TABLE_NUMBER,
+ .minimum = 0,
+ .maximum = USHRT_MAX,
+ .default_num = 0
+ },
+
{ .name = "remain-on-exit",
.type = OPTIONS_TABLE_FLAG,
.default_num = 0
Modified: trunk/tmux.1
===================================================================
--- trunk/tmux.1 2011-08-25 21:12:52 UTC (rev 2586)
+++ trunk/tmux.1 2011-08-25 21:13:45 UTC (rev 2587)
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 16 2011 $
+.Dd $Mdocdate: August 24 2011 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -2422,6 +2422,11 @@
.Ic main-vertical
layout.
.Pp
+.It Ic pane-base-index Ar index
+Like
+.Ic base-index ,
+but set the starting index for pane numbers.
+.Pp
.It Xo Ic remain-on-exit
.Op Ic on | off
.Xc
Modified: trunk/window.c
===================================================================
--- trunk/window.c 2011-08-25 21:12:52 UTC (rev 2586)
+++ trunk/window.c 2011-08-25 21:13:45 UTC (rev 2587)
@@ -451,7 +451,7 @@
struct window_pane *wp;
u_int n;
- n = 0;
+ n = options_get_number(&w->options, "pane-base-index");
TAILQ_FOREACH(wp, &w->panes, entry) {
if (n == idx)
return (wp);
@@ -489,7 +489,7 @@
struct window_pane *wq;
u_int n;
- n = 0;
+ n = options_get_number(&w->options, "pane-base-index");
TAILQ_FOREACH(wq, &w->panes, entry) {
if (wp == wq)
break;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs