]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.321
- new
[packages/vim.git] / 7.2.321
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.321
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.321
11 Problem:    histadd() and searching with "*" fails to add entry to history
12             when it is empty.
13 Solution:   Initialize the history. (Lech Lorens)
14 Files:      src/eval.c, src/normal.c
15
16
17 *** ../vim-7.2.320/src/eval.c   2009-11-17 12:20:30.000000000 +0100
18 --- src/eval.c  2009-12-24 14:37:50.000000000 +0100
19 ***************
20 *** 12014,12019 ****
21 --- 12014,12020 ----
22         str = get_tv_string_buf(&argvars[1], buf);
23         if (*str != NUL)
24         {
25 +           init_history();
26             add_to_history(histype, str, FALSE, NUL);
27             rettv->vval.v_number = TRUE;
28             return;
29 *** ../vim-7.2.320/src/normal.c 2009-05-17 13:30:58.000000000 +0200
30 --- src/normal.c        2009-12-24 14:38:28.000000000 +0100
31 ***************
32 *** 5602,5607 ****
33 --- 5602,5608 ----
34             STRCAT(buf, "\\>");
35   #ifdef FEAT_CMDHIST
36         /* put pattern in search history */
37 +       init_history();
38         add_to_history(HIST_SEARCH, buf, TRUE, NUL);
39   #endif
40         normal_search(cap, cmdchar == '*' ? '/' : '?', buf, 0);
41 *** ../vim-7.2.320/src/version.c        2009-12-16 19:02:05.000000000 +0100
42 --- src/version.c       2009-12-24 14:39:46.000000000 +0100
43 ***************
44 *** 683,684 ****
45 --- 683,686 ----
46   {   /* Add new patch number below this line */
47 + /**/
48 +     321,
49   /**/
50
51 -- 
52 hundred-and-one symptoms of being an internet addict:
53 43. You tell the kids they can't use the computer because "Daddy's got work to
54     do" and you don't even have a job.
55
56  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
57 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
58 \\\        download, build and distribute -- http://www.A-A-P.org        ///
59  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.026817 seconds and 3 git commands to generate.