1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.3.425 (after 7.3.265)
11 Problem: Search history lines are duplicated. (Edwin Steiner)
12 Solution: Convert separator character from space to NUL.
16 *** ../vim-7.3.424/src/ex_getln.c 2012-01-26 13:01:54.000000000 +0100
17 --- src/ex_getln.c 2012-02-04 22:27:43.000000000 +0100
20 val = viminfo_readstring(virp, 1, TRUE);
21 if (val != NULL && *val != NUL)
23 if (!in_history(type, val + (type == HIST_SEARCH),
24 ! viminfo_add_at_front, *val))
26 /* Need to re-allocate to append the separator byte. */
29 val = viminfo_readstring(virp, 1, TRUE);
30 if (val != NULL && *val != NUL)
32 + int sep = (*val == ' ' ? NUL : *val);
34 if (!in_history(type, val + (type == HIST_SEARCH),
35 ! viminfo_add_at_front, sep))
37 /* Need to re-allocate to append the separator byte. */
41 /* Search entry: Move the separator from the first
42 * column to after the NUL. */
43 mch_memmove(p, val + 1, (size_t)len);
44 ! p[len] = (*val == ' ' ? NUL : *val);
49 /* Search entry: Move the separator from the first
50 * column to after the NUL. */
51 mch_memmove(p, val + 1, (size_t)len);
56 *** ../vim-7.3.424/src/version.c 2012-02-04 22:01:44.000000000 +0100
57 --- src/version.c 2012-02-04 22:30:36.000000000 +0100
61 { /* Add new patch number below this line */
67 "So this is it," said Arthur, "we are going to die."
68 "Yes," said Ford, "except...no! Wait a minute!" He suddenly lunged across
69 the chamber at something behind Arthur's line of vision. "What's this
71 "What? Where?" cried Arthur, twisting around.
72 "No, I was only fooling," said Ford, "we are going to die after all."
73 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
75 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
76 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
77 \\\ an exciting new programming language -- http://www.Zimbu.org ///
78 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///