From 45dfc5a074e2ceae11a6d4aeae597bee1e028503 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 20 Oct 2014 22:29:25 +0000 Subject: Instead of setting up the default keys by building the key struct directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q. As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon. --- cmd-break-pane.c | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd-break-pane.c') diff --git a/cmd-break-pane.c b/cmd-break-pane.c index 85c5d4d9..5e7ecd02 100644 --- a/cmd-break-pane.c +++ b/cmd-break-pane.c @@ -33,7 +33,6 @@ const struct cmd_entry cmd_break_pane_entry = { "dPF:t:", 0, 0, "[-dP] [-F format] " CMD_TARGET_PANE_USAGE, 0, - NULL, cmd_break_pane_exec }; -- cgit From 4c42381410891c43b1326e95f150dfcf637b1e69 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 20 Oct 2014 23:35:28 +0000 Subject: Move template defines back into .c files. --- cmd-break-pane.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd-break-pane.c') diff --git a/cmd-break-pane.c b/cmd-break-pane.c index 5e7ecd02..0025167f 100644 --- a/cmd-break-pane.c +++ b/cmd-break-pane.c @@ -26,6 +26,8 @@ * Break pane off into a window. */ +#define BREAK_PANE_TEMPLATE "#{session_name}:#{window_index}.#{pane_index}" + enum cmd_retval cmd_break_pane_exec(struct cmd *, struct cmd_q *); const struct cmd_entry cmd_break_pane_entry = { -- cgit