summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-06-11 19:43:35 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-06-11 19:43:35 +0000
commit8ded41f4dce6cca9ba06b21d71a5d91a207dc45e (patch)
tree853c006863e290cababda6eaee1bece7b0e9a6ef /usr.bin/tmux/format.c
parent96fe3476dc8d86b7171b8a0b8b3f55d7acb58cf2 (diff)
Add some formats for search in copy mode (search_present, search_match).
GitHub issue 2268.
Diffstat (limited to 'usr.bin/tmux/format.c')
-rw-r--r--usr.bin/tmux/format.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c
index a7f709b5fef..160bf6adf18 100644
--- a/usr.bin/tmux/format.c
+++ b/usr.bin/tmux/format.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format.c,v 1.257 2020/06/01 19:39:25 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.258 2020/06/11 19:43:34 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1156,6 +1156,13 @@ format_merge(struct format_tree *ft, struct format_tree *from)
}
}
+/* Get format pane. */
+struct window_pane *
+format_get_pane(struct format_tree *ft)
+{
+ return (ft->wp);
+}
+
/* Add item bits to tree. */
static void
format_create_add_item(struct format_tree *ft, struct cmdq_item *item)