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.
This commit is contained in:
nicm
2017-01-06 11:57:03 +00:00
parent 9a56671a75
commit 461217d0f0
8 changed files with 256 additions and 124 deletions

View File

@ -31,7 +31,7 @@
static enum cmd_retval cmd_confirm_before_exec(struct cmd *,
struct cmdq_item *);
static int cmd_confirm_before_callback(void *, const char *);
static int cmd_confirm_before_callback(void *, const char *, int);
static void cmd_confirm_before_free(void *);
const struct cmd_entry cmd_confirm_before_entry = {
@ -96,7 +96,7 @@ cmd_confirm_before_error(struct cmdq_item *item, void *data)
}
static int
cmd_confirm_before_callback(void *data, const char *s)
cmd_confirm_before_callback(void *data, const char *s, __unused int done)
{
struct cmd_confirm_before_data *cdata = data;
struct client *c = cdata->client;