Oh well, it works in that you will see the previous search term, but it
won't actually search again until you change it.
Try this as well to fix that:
Index: status.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/status.c,v
retrieving revision 1.163
diff -u -p -r1.163 status.c
--- status.c 22 Apr 2017 12:55:06 -0000 1.163
+++ status.c 30 Apr 2017 19:57:30 -0000
@@ -661,7 +661,7 @@ status_prompt_set(struct client *c, cons
{
struct format_tree *ft;
time_t t;
- char *tmp;
+ char *tmp, *cp;
ft = format_create(NULL, FORMAT_NONE, 0);
format_defaults(ft, c, NULL, NULL, NULL);
@@ -689,6 +689,12 @@ status_prompt_set(struct client *c, cons
if (~flags & PROMPT_INCREMENTAL)
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);
c->flags |= CLIENT_STATUS;
+
+ if ((flags & PROMPT_INCREMENTAL) && *tmp != '\0') {
+ xasprintf(&cp, "=%s", tmp);
+ c->prompt_callbackfn(c->prompt_data, cp, 0);
+ free(cp);
+ }
free(tmp);
format_free(ft);
On Sun, Apr 30, 2017 at 08:48:48PM +0100, Nicholas Marriott wrote:
> It worked for me, are you sure you restarted tmux entirely?
> On 30 Apr 2017 8:47 pm, "Suraj N. Kurapati" <[email protected]> wrote:
>
> On Sun, 30 Apr 2017 20:35:05 +0100, Nicholas Marriott wrote:
> > There is no search string when you are not in copy mode.
>
> Thanks for clarifying.A Then this copy-mode binding should work, right?
>
> A bind-key -T copy-mode-vi ? \
> A A command-prompt -i -p 'search up' -I '#{pane_search_string}' \
> A A A 'send -X search-backward-incremental "%%%"'
>
> However, even though I trigger the above key binding from copy-mode, the
> underlying command-prompt command expands pane_search_string to nothing.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.