Try this please:

Index: window-copy.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/window-copy.c,v
retrieving revision 1.152
diff -u -p -r1.152 window-copy.c
--- window-copy.c       12 Sep 2016 15:40:58 -0000      1.152
+++ window-copy.c       3 Oct 2016 21:40:02 -0000
@@ -948,13 +948,13 @@ window_copy_key_input(struct window_pane
                        data->searchtype = data->inputtype;
                        data->searchstr = xstrdup(data->inputstr);
                        for (; np != 0; np--)
-                               window_copy_search_up(wp, data->inputstr, 0);
+                               window_copy_search_up(wp, data->inputstr, 1);
                        break;
                case WINDOW_COPY_SEARCHDOWN:
                        data->searchtype = data->inputtype;
                        data->searchstr = xstrdup(data->inputstr);
                        for (; np != 0; np--)
-                               window_copy_search_down(wp, data->inputstr, 0);
+                               window_copy_search_down(wp, data->inputstr, 1);
                        break;
                case WINDOW_COPY_NAMEDBUFFER:
                        window_copy_copy_selection(wp, data->inputstr);


On Thu, Sep 15, 2016 at 08:10:24PM +0000, Kaushal Modi wrote:
>    This gif will probably demonstrate the problem
>    better:**[1]http://i.imgur.com/ng7IB5C.gifv
>    Total gif length is 30 seconds.
>    Around 20 second mark (counter in bottom right), you will see that there
>    are clearly more instances of "delete" above in the pane. But repeated
>    attempts of "C-r Enter" are not moving the cursor to those occurrences.
>    The cursor just stays stuck at the first found instance of "delete".
>    The same technique of search had always worked. I cannot though point as
>    to when it stopped working. I do not have a custom C-r binding in
>    copy-mode.
>    On Thu, Sep 15, 2016 at 3:57 PM Nicholas Marriott
>    <[2]nicholas.marri...@gmail.com> wrote:
> 
>      Looks like it is including the current character in the search which
>      means it finds the same string it just found again, if you move the
>      cursor off it it works.
> 
>      On Wed, Sep 14, 2016 at 10:00:38PM +0000, Kaushal Modi wrote:
>      >** ** Hello,
>      >** ** I have been using the reverse search in panes feature for quite
>      some time.
>      >** ** But it is not working any more for me.
>      >** ** Here is how I try to search.
>      >** ** 1. Verified that the pane has a long history
>      >** ** 2. Enter copy-mode by using default binding PREFIX-[
>      >** ** 3. C-r followed by the search term and hit enter
>      >** ** If the term I am searching is in the visible area of the pane,
>      nothing
>      >** ** happens, the cursor doesn't move to the term which I can already
>      see in
>      >** ** the pane.
>      >** ** If the term I am searching is not visible, the search works but
>      only that
>      >** ** one time. The cursor jumps to the first found instance of that
>      term. Then
>      >** ** consecutive searches of that term does nothing (which comes back
>      to the
>      >** ** above case).
>      >** ** By consecutive search, I mean that I hit C-r and just hit enter
>      as the
>      >** ** previously typed search term stays prefilled.
>      >** ** I am using the latest build of tmux.
>      >** ** --
>      >
>      >** ** Kaushal Modi
>      >
>      >** ** --
>      >** ** 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 [1][3]tmux-users+unsubscr...@googlegroups.com.
>      >** ** To post to this group, send email to
>      [2][4]tmux-users@googlegroups.com.
>      >** ** For more options, visit [3][5]https://groups.google.com/d/optout.
>      >
>      > References
>      >
>      >** ** Visible links
>      >** ** 1. mailto:[6]tmux-users+unsubscr...@googlegroups.com
>      >** ** 2. mailto:[7]tmux-users@googlegroups.com
>      >** ** 3. [8]https://groups.google.com/d/optout
> 
>    --
> 
>    Kaushal Modi
> 
>    --
>    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 [9]tmux-users+unsubscr...@googlegroups.com.
>    To post to this group, send email to [10]tmux-users@googlegroups.com.
>    For more options, visit [11]https://groups.google.com/d/optout.
> 
> References
> 
>    Visible links
>    1. http://i.imgur.com/ng7IB5C.gifv
>    2. mailto:nicholas.marri...@gmail.com
>    3. mailto:tmux-users%2bunsubscr...@googlegroups.com
>    4. mailto:tmux-users@googlegroups.com
>    5. https://groups.google.com/d/optout
>    6. mailto:tmux-users%2bunsubscr...@googlegroups.com
>    7. mailto:tmux-users@googlegroups.com
>    8. https://groups.google.com/d/optout
>    9. mailto:tmux-users+unsubscr...@googlegroups.com
>   10. mailto:tmux-users@googlegroups.com
>   11. https://groups.google.com/d/optout

-- 
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 tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to