mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.1-028
This commit is contained in:
parent
fe1c56d6ae
commit
1256e720f5
@ -1571,6 +1571,10 @@ found here: |sort()|.
|
|||||||
in their original order, right before the sorted
|
in their original order, right before the sorted
|
||||||
lines.
|
lines.
|
||||||
|
|
||||||
|
If {pattern} is empty (e.g. // is specified), the
|
||||||
|
last search pattern is used. This allows trying out
|
||||||
|
a pattern first.
|
||||||
|
|
||||||
Note that using ":sort" with ":global" doesn't sort the matching lines, it's
|
Note that using ":sort" with ":global" doesn't sort the matching lines, it's
|
||||||
quite useless.
|
quite useless.
|
||||||
|
|
||||||
|
@ -408,6 +408,10 @@ ex_sort(eap)
|
|||||||
goto sortend;
|
goto sortend;
|
||||||
}
|
}
|
||||||
*s = NUL;
|
*s = NUL;
|
||||||
|
/* Use last search pattern if sort pattern is empty. */
|
||||||
|
if (s == p + 1 && last_search_pat() != NULL)
|
||||||
|
regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC);
|
||||||
|
else
|
||||||
regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
|
regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
|
||||||
if (regmatch.regprog == NULL)
|
if (regmatch.regprog == NULL)
|
||||||
goto sortend;
|
goto sortend;
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
28,
|
||||||
/**/
|
/**/
|
||||||
27,
|
27,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user