Taro Muraoka wrote:
> I got a report of strange behavior about vim's search history.
> And I have wrote an attached patch to fix it.
> Please check below description and the patch.
>
> Thanks
>
> ==Description==
> Operations to reproduce foobar:
> 1. Search backword: ?foobar/e<CR>
> 2. Search forward: /foobar/e<CR>
> 3. /<UP>
> Expected: Shows /foobar/e
> Actually: Shows /foobar\/e
>
> Problem:
> After OP1, "foobar/e" and '?' are stored into history as histstr (call
> this Hist#1).
> When OP2, it try to store "foobar/e" and '/' (Hist#2) but in_history()
> doesn't check separator character, so it matches with Hist#1 and
> in_history() returns true, and Hist#2 isn't stored into history.
> At OP3, search from history then match Hist#1, and it realize
> separator character is not match, then replace those escape
> characters.
>
> Solution:
> Make in_history() function sensible of separator character for search
> history, to store Hist#2.
Thanks. I'll add it to the todo list.
--
Apologies for taking up the bandwidth with the apology. Anything else I
can apologise for ...... er no can't think of anything, sorry about that.
Andy Hunt (Member of British Olympic Apology Squad)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php