summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-06 11:57:04 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-06 11:57:04 +0000
commit15ce00a3a1f3aed4b9bebb412b5d36f084822230 (patch)
treeb6162243bfcc81db6cdc8a99a3dcb6214c816747 /usr.bin/tmux/tmux.h
parentd76db7076bfea9a334a2c1ddccb141e3f564ab78 (diff)
Incremental search in copy mode (on for emacs keys by default) - much
the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 61f50719edd..e0d6f860db6 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.683 2017/01/05 09:07:16 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.684 2017/01/06 11:57:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1417,7 +1417,7 @@ struct client {
char *prompt_string;
struct utf8_data *prompt_buffer;
size_t prompt_index;
- int (*prompt_callbackfn)(void *, const char *);
+ int (*prompt_callbackfn)(void *, const char *, int);
void (*prompt_freefn)(void *);
void *prompt_data;
u_int prompt_hindex;
@@ -1425,6 +1425,7 @@ struct client {
#define PROMPT_SINGLE 0x1
#define PROMPT_NUMERIC 0x2
+#define PROMPT_INCREMENTAL 0x4
int prompt_flags;
struct session *session;
@@ -1915,7 +1916,7 @@ void printflike(2, 3) status_message_set(struct client *, const char *, ...);
void status_message_clear(struct client *);
int status_message_redraw(struct client *);
void status_prompt_set(struct client *, const char *, const char *,
- int (*)(void *, const char *), void (*)(void *), void *, int);
+ int (*)(void *, const char *, int), void (*)(void *), void *, int);
void status_prompt_clear(struct client *);
int status_prompt_redraw(struct client *);
int status_prompt_key(struct client *, key_code);