Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: even better history-search-{for,back}ward for 3.1.4



On Jun 10,  1:51am, Wayne Davison wrote:
} Subject: PATCH: even better history-search-{for,back}ward for 3.1.4
}
} "Bart Schaefer" writes:
} > zsh% ech<M-p>
} > zsh% echo this is a test<C-p>
} > zsh% fc -R historytest<M-p>
} 
} I find it humorous that my old code did the right thing in this case
} but for the wrong reason.  The new code will still search for "fc ",
} but because it properly decided to start a new search.

I hope not ... the new code ought to search for "fc" (without the space),
because of the !iblank(line[histpos]).  By neither interpretation was the
old code doing the right thing.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author