Re: [Patch] Repeat search in reverse direction

2010-02-10 Thread Micah Cowan
New version of the patch. Nicholas Marriott wrote: > Hi > > Thanks for the diff, > > n retains the sense of the last search (repeats in the same direction), so > this > is to reverse the sense of the last search? > >> +if ((data->searchtype == WINDOW_COPY_SEARCHUP) >> +

Re: [Patch] Repeat search in reverse direction

2010-02-10 Thread Nicholas Marriott
On Sun, Feb 07, 2010 at 02:28:06PM -0800, Micah Cowan wrote: > Nicholas Marriott wrote: > > Hi > > > > Thanks for the diff, > > > > n retains the sense of the last search (repeats in the same direction), so > > this > > is to reverse the sense of the last search? > > Well, it's to search in the

Re: [Patch] Repeat search in reverse direction

2010-02-07 Thread Micah Cowan
Nicholas Marriott wrote: > Hi > > Thanks for the diff, > > n retains the sense of the last search (repeats in the same direction), so > this > is to reverse the sense of the last search? Well, it's to search in the reverse of the last actually typed search. So, if you searched up, n will contin

Re: [Patch] Repeat search in reverse direction

2010-02-07 Thread Nicholas Marriott
Hi Thanks for the diff, n retains the sense of the last search (repeats in the same direction), so this is to reverse the sense of the last search? > + if ((data->searchtype == WINDOW_COPY_SEARCHUP) > + == (cmd == MODEKEYCOPY_SEARCHAGAIN)) This should

[Patch] Repeat search in reverse direction

2010-02-06 Thread Micah Cowan
The attached patch bind "N" (both copy modes) to "search-reverse", a new command that does the same as "search-again", but in the reverse of the current direction (same as "N" normally does in the vi editor). -- Micah J. Cowan http://micah.cowan.name/ Index: mode-key.c ===