|
Karsten Hopp |
12f5c1 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
12f5c1 |
Subject: Patch 7.3.851
|
|
Karsten Hopp |
12f5c1 |
Fcc: outbox
|
|
Karsten Hopp |
12f5c1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
12f5c1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
12f5c1 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
12f5c1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
12f5c1 |
------------
|
|
Karsten Hopp |
12f5c1 |
|
|
Karsten Hopp |
12f5c1 |
Patch 7.3.851
|
|
Karsten Hopp |
12f5c1 |
Problem: Using an empty pattern with :sort silently continues when there is
|
|
Karsten Hopp |
12f5c1 |
no previous search pattern.
|
|
Karsten Hopp |
12f5c1 |
Solution: Give an error message.
|
|
Karsten Hopp |
12f5c1 |
Files: src/ex_cmds.c
|
|
Karsten Hopp |
12f5c1 |
|
|
Karsten Hopp |
12f5c1 |
|
|
Karsten Hopp |
12f5c1 |
*** ../vim-7.3.850/src/ex_cmds.c 2013-03-07 16:08:31.000000000 +0100
|
|
Karsten Hopp |
12f5c1 |
--- src/ex_cmds.c 2013-03-07 16:25:28.000000000 +0100
|
|
Karsten Hopp |
12f5c1 |
***************
|
|
Karsten Hopp |
12f5c1 |
*** 415,422 ****
|
|
Karsten Hopp |
12f5c1 |
}
|
|
Karsten Hopp |
12f5c1 |
*s = NUL;
|
|
Karsten Hopp |
12f5c1 |
/* Use last search pattern if sort pattern is empty. */
|
|
Karsten Hopp |
12f5c1 |
! if (s == p + 1 && last_search_pat() != NULL)
|
|
Karsten Hopp |
12f5c1 |
regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC);
|
|
Karsten Hopp |
12f5c1 |
else
|
|
Karsten Hopp |
12f5c1 |
regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
|
|
Karsten Hopp |
12f5c1 |
if (regmatch.regprog == NULL)
|
|
Karsten Hopp |
12f5c1 |
--- 415,429 ----
|
|
Karsten Hopp |
12f5c1 |
}
|
|
Karsten Hopp |
12f5c1 |
*s = NUL;
|
|
Karsten Hopp |
12f5c1 |
/* Use last search pattern if sort pattern is empty. */
|
|
Karsten Hopp |
12f5c1 |
! if (s == p + 1)
|
|
Karsten Hopp |
12f5c1 |
! {
|
|
Karsten Hopp |
12f5c1 |
! if (last_search_pat() == NULL)
|
|
Karsten Hopp |
12f5c1 |
! {
|
|
Karsten Hopp |
12f5c1 |
! EMSG(_(e_noprevre));
|
|
Karsten Hopp |
12f5c1 |
! goto sortend;
|
|
Karsten Hopp |
12f5c1 |
! }
|
|
Karsten Hopp |
12f5c1 |
regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC);
|
|
Karsten Hopp |
12f5c1 |
+ }
|
|
Karsten Hopp |
12f5c1 |
else
|
|
Karsten Hopp |
12f5c1 |
regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC);
|
|
Karsten Hopp |
12f5c1 |
if (regmatch.regprog == NULL)
|
|
Karsten Hopp |
12f5c1 |
*** ../vim-7.3.850/src/version.c 2013-03-07 16:32:49.000000000 +0100
|
|
Karsten Hopp |
12f5c1 |
--- src/version.c 2013-03-07 16:38:49.000000000 +0100
|
|
Karsten Hopp |
12f5c1 |
***************
|
|
Karsten Hopp |
12f5c1 |
*** 730,731 ****
|
|
Karsten Hopp |
12f5c1 |
--- 730,733 ----
|
|
Karsten Hopp |
12f5c1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
12f5c1 |
+ /**/
|
|
Karsten Hopp |
12f5c1 |
+ 851,
|
|
Karsten Hopp |
12f5c1 |
/**/
|
|
Karsten Hopp |
12f5c1 |
|
|
Karsten Hopp |
12f5c1 |
--
|
|
Karsten Hopp |
12f5c1 |
This planet has -- or rather had -- a problem, which was this: most
|
|
Karsten Hopp |
12f5c1 |
of the people living on it were unhappy for pretty much of the time.
|
|
Karsten Hopp |
12f5c1 |
Many solutions were suggested for this problem, but most of these
|
|
Karsten Hopp |
12f5c1 |
were largely concerned with the movements of small green pieces of
|
|
Karsten Hopp |
12f5c1 |
paper, which is odd because on the whole it wasn't the small green
|
|
Karsten Hopp |
12f5c1 |
pieces of paper that were unhappy.
|
|
Karsten Hopp |
12f5c1 |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
12f5c1 |
|
|
Karsten Hopp |
12f5c1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
12f5c1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
12f5c1 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
12f5c1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|