]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.028
- updated to 7.1.100
[packages/vim.git] / 7.1.028
CommitLineData
ad28a8ff
AG
1To: vim-dev@vim.org
2Subject: patch 7.1.028
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.028
11Problem: Can't use last search pattern for ":sort". (Brian McKee)
12Solution: When the pattern is emtpy use the last search pattern. (Martin
13 Toft)
14Files: runtime/doc/change.txt, src/ex_cmds.c
15
16
17*** ../vim-7.1.027/runtime/doc/change.txt Sat May 12 16:10:12 2007
18--- runtime/doc/change.txt Tue Jul 10 11:30:56 2007
19***************
20*** 1571,1576 ****
21--- 1571,1580 ----
22 in their original order, right before the sorted
23 lines.
24
25+ If {pattern} is empty (e.g. // is specified), the
26+ last search pattern is used. This allows trying out
27+ a pattern first.
28+
29 Note that using ":sort" with ":global" doesn't sort the matching lines, it's
30 quite useless.
31
32*** ../vim-7.1.027/src/ex_cmds.c Thu Jun 28 21:57:08 2007
33--- src/ex_cmds.c Tue Jul 10 17:25:10 2007
34***************
35*** 408,414 ****
36 goto sortend;
37 }
38 *s = NUL;
39! regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
40 if (regmatch.regprog == NULL)
41 goto sortend;
42 p = s; /* continue after the regexp */
43--- 408,418 ----
44 goto sortend;
45 }
46 *s = NUL;
47! /* Use last search pattern if sort pattern is empty. */
48! if (s == p + 1 && last_search_pat() != NULL)
49! regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC);
50! else
51! regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
52 if (regmatch.regprog == NULL)
53 goto sortend;
54 p = s; /* continue after the regexp */
55*** ../vim-7.1.027/src/version.c Tue Jul 10 17:09:51 2007
56--- src/version.c Tue Jul 10 17:20:01 2007
57***************
58*** 668,669 ****
59--- 668,671 ----
60 { /* Add new patch number below this line */
61+ /**/
62+ 28,
63 /**/
64
65--
66Every person is responsible for the choices he makes.
67
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70\\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.039185 seconds and 4 git commands to generate.