[patch] Initialise history before adding elements

0 views
Skip to first unread message

Lech Lorens

unread,
Dec 16, 2009, 5:38:25 PM12/16/09
to vim_dev
The attached patch fixes the behaviour of Vim where histadd() and
searching with * fail to add elements to history if the history is
empty.

How to reproduce:

Problem with histadd():

$ vim -i NONE -c 'call histadd("search", "search")' \
-c 'call histadd("search", "for")' \
-c 'call histadd("search", "some")' \
-c 'call histadd("search", "words")' \
-c 'call feedkeys("q/")'

Problem with searching with *:

vim -i NONE -c 'normal ido' \
-c 'normal osome' \
-c 'normal osearching' \
-c 'normal oplease' \
-c 'normal gg' \
-c 'normal *' \
-c 'call feedkeys("q/")'

Note that the window containing the history is empty, although it should
contain 4 elements in the first case and 1 element in the second case.

--
Cheers,
Lech
star-find.patch

Steven Sajous

unread,
Dec 16, 2009, 5:57:53 PM12/16/09
to vim...@googlegroups.com
does anyone know why the unsubscribe does not work on this list? I have done it 4 times and got a confirmation every time. Still getting emails.


--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php



--
"A conservative is a liberal who has been mugged.  A liberal is a conservative who has been hugged."

John Beckett

unread,
Dec 16, 2009, 11:09:19 PM12/16/09
to vim...@googlegroups.com
Steven Sajous wrote:
> does anyone know why the unsubscribe does not work on this
> list? I have done it 4 times and got a confirmation every
> time. Still getting emails.

Please say exactly what you did. You emailed what address
approximately how many hours ago?

John

Steven Sajous

unread,
Dec 17, 2009, 11:32:32 AM12/17/09
to vim...@googlegroups.com
Last Attempt:

from vim_dev <vim_dev+un...@googlegroups.com>
to
date Wed, Dec 16, 2009 at 3:50 PM
subject Unsubscribe request for vim_dev [{EJ2QpdkEk8REPI7uh0E0}]
mailing list vim_dev.googlegroups.com Filter messages from this mailing list
mailed-by googlegroups.com
hide details 3:50 PM (19 hours ago)
Hello 

We have received your request to unsubscribe from vim_dev. In order for us to complete the request, please reply to this email or visit the following confirmation URL:

http://groups.google.com/group/vim_dev/subscribe?hl=en

If you have questions related to this or any other Google group, visit the Help Center at http://groups.google.com/support/?hl=en.

Thanks,

google groups

--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Bram Moolenaar

unread,
Dec 17, 2009, 5:14:15 PM12/17/09
to Lech Lorens, vim_dev

Lech Lorens wrote:

Thanks, I'll put it in the todo list.

--
Seen it all, done it all, can't remember most of it.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages