And add back the line format string that I deleted. Didn't realize that
it wasn't just a hack for pane_index.

--Ben
From d18fd48cdf53b6affcb3b67a5a89861f0590046f Mon Sep 17 00:00:00 2001
From: Ben Boeckel <maths...@gmail.com>
Date: Thu, 20 Oct 2011 14:30:23 -0400
Subject: [PATCH 6/6] Add line back to the format strings

I missed that this was a standard argument, not just being abused to get
the pane index instead.
---
 trunk/cmd-list-panes.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/trunk/cmd-list-panes.c b/trunk/cmd-list-panes.c
index f46c3c5..7331abd 100644
--- a/trunk/cmd-list-panes.c
+++ b/trunk/cmd-list-panes.c
@@ -128,6 +128,7 @@ cmd_list_panes_window(struct cmd *self,
        n = 0;
        TAILQ_FOREACH(wp, &wl->window->panes, entry) {
                ft = format_create();
+               format_add(ft, "line", "%u", n);
                format_session(ft, s);
                format_winlink(ft, s, wl);
                format_window_pane(ft, wp);
-- 
1.7.6.4

Attachment: pgp34dFPu8NYu.pgp
Description: PGP signature

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to