summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-13 00:01:43 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-13 00:01:43 +0100
commit61c3519b78c19824e590828198802a3f65595ad5 (patch)
treee0b1094379c9c5c9e60d62dbc2d5d2b67e5d6014
parenta64ba220f0172049c5407a3020dcd687911a5a31 (diff)
downloadvim-git-61c3519b78c19824e590828198802a3f65595ad5.tar.gz
updated for version 7.3.444v7.3.444
Problem: ":all!" and ":sall!" give error E477, even though the documentation says these are valid commands. Solution: Support the exclamation mark. (Hirohito Higashi)
-rw-r--r--src/ex_cmds.h4
-rw-r--r--src/testdir/test31.in6
-rw-r--r--src/testdir/test31.ok1
-rw-r--r--src/version.c2
4 files changed, 11 insertions, 2 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index adbbd5a0f..16540bda0 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -102,7 +102,7 @@ EX(CMD_abclear, "abclear", ex_abclear,
EX(CMD_aboveleft, "aboveleft", ex_wrongmodifier,
NEEDARG|EXTRA|NOTRLCOM),
EX(CMD_all, "all", ex_all,
- RANGE|NOTADR|COUNT|TRLBAR),
+ BANG|RANGE|NOTADR|COUNT|TRLBAR),
EX(CMD_amenu, "amenu", ex_menu,
RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
EX(CMD_anoremenu, "anoremenu", ex_menu,
@@ -798,7 +798,7 @@ EX(CMD_sNext, "sNext", ex_previous,
EX(CMD_sargument, "sargument", ex_argument,
BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR),
EX(CMD_sall, "sall", ex_all,
- RANGE|NOTADR|COUNT|TRLBAR),
+ BANG|RANGE|NOTADR|COUNT|TRLBAR),
EX(CMD_sandbox, "sandbox", ex_wrongmodifier,
NEEDARG|EXTRA|NOTRLCOM),
EX(CMD_saveas, "saveas", ex_write,
diff --git a/src/testdir/test31.in b/src/testdir/test31.in
index b00c7602e..7dc233478 100644
--- a/src/testdir/test31.in
+++ b/src/testdir/test31.in
@@ -63,6 +63,12 @@ A 3:close
:" write "testtext 1"
A 3:close!
:w >>test.out
+:set nohidden
+:" test ":all!" hides changed buffer; write "testtext 2 2 2"
+:sp Xtest4
+GA 4:all!
+:1wincmd w
+:w >>test.out
:qa!
ENDTEST
diff --git a/src/testdir/test31.ok b/src/testdir/test31.ok
index 3311ad5df..185bdc768 100644
--- a/src/testdir/test31.ok
+++ b/src/testdir/test31.ok
@@ -9,3 +9,4 @@ testtext 3 3
testtext 1
testtext 3 3 3
testtext 1
+testtext 2 2 2
diff --git a/src/version.c b/src/version.c
index 246145691..bf32d28d7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 444,
+/**/
443,
/**/
442,