|
Karsten Hopp |
57c275 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
57c275 |
Subject: Patch 7.2.321
|
|
Karsten Hopp |
57c275 |
Fcc: outbox
|
|
Karsten Hopp |
57c275 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
57c275 |
Mime-Version: 1.0
|
|
Karsten Hopp |
57c275 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
57c275 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
57c275 |
------------
|
|
Karsten Hopp |
57c275 |
|
|
Karsten Hopp |
57c275 |
Patch 7.2.321
|
|
Karsten Hopp |
57c275 |
Problem: histadd() and searching with "*" fails to add entry to history
|
|
Karsten Hopp |
57c275 |
when it is empty.
|
|
Karsten Hopp |
57c275 |
Solution: Initialize the history. (Lech Lorens)
|
|
Karsten Hopp |
57c275 |
Files: src/eval.c, src/normal.c
|
|
Karsten Hopp |
57c275 |
|
|
Karsten Hopp |
57c275 |
|
|
Karsten Hopp |
57c275 |
*** ../vim-7.2.320/src/eval.c 2009-11-17 12:20:30.000000000 +0100
|
|
Karsten Hopp |
57c275 |
--- src/eval.c 2009-12-24 14:37:50.000000000 +0100
|
|
Karsten Hopp |
57c275 |
***************
|
|
Karsten Hopp |
57c275 |
*** 12014,12019 ****
|
|
Karsten Hopp |
57c275 |
--- 12014,12020 ----
|
|
Karsten Hopp |
57c275 |
str = get_tv_string_buf(&argvars[1], buf);
|
|
Karsten Hopp |
57c275 |
if (*str != NUL)
|
|
Karsten Hopp |
57c275 |
{
|
|
Karsten Hopp |
57c275 |
+ init_history();
|
|
Karsten Hopp |
57c275 |
add_to_history(histype, str, FALSE, NUL);
|
|
Karsten Hopp |
57c275 |
rettv->vval.v_number = TRUE;
|
|
Karsten Hopp |
57c275 |
return;
|
|
Karsten Hopp |
57c275 |
*** ../vim-7.2.320/src/normal.c 2009-05-17 13:30:58.000000000 +0200
|
|
Karsten Hopp |
57c275 |
--- src/normal.c 2009-12-24 14:38:28.000000000 +0100
|
|
Karsten Hopp |
57c275 |
***************
|
|
Karsten Hopp |
57c275 |
*** 5602,5607 ****
|
|
Karsten Hopp |
57c275 |
--- 5602,5608 ----
|
|
Karsten Hopp |
57c275 |
STRCAT(buf, "\\>");
|
|
Karsten Hopp |
57c275 |
#ifdef FEAT_CMDHIST
|
|
Karsten Hopp |
57c275 |
/* put pattern in search history */
|
|
Karsten Hopp |
57c275 |
+ init_history();
|
|
Karsten Hopp |
57c275 |
add_to_history(HIST_SEARCH, buf, TRUE, NUL);
|
|
Karsten Hopp |
57c275 |
#endif
|
|
Karsten Hopp |
57c275 |
normal_search(cap, cmdchar == '*' ? '/' : '?', buf, 0);
|
|
Karsten Hopp |
57c275 |
*** ../vim-7.2.320/src/version.c 2009-12-16 19:02:05.000000000 +0100
|
|
Karsten Hopp |
57c275 |
--- src/version.c 2009-12-24 14:39:46.000000000 +0100
|
|
Karsten Hopp |
57c275 |
***************
|
|
Karsten Hopp |
57c275 |
*** 683,684 ****
|
|
Karsten Hopp |
57c275 |
--- 683,686 ----
|
|
Karsten Hopp |
57c275 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
57c275 |
+ /**/
|
|
Karsten Hopp |
57c275 |
+ 321,
|
|
Karsten Hopp |
57c275 |
/**/
|
|
Karsten Hopp |
57c275 |
|
|
Karsten Hopp |
57c275 |
--
|
|
Karsten Hopp |
57c275 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
57c275 |
43. You tell the kids they can't use the computer because "Daddy's got work to
|
|
Karsten Hopp |
57c275 |
do" and you don't even have a job.
|
|
Karsten Hopp |
57c275 |
|
|
Karsten Hopp |
57c275 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
57c275 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
57c275 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
57c275 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|