Created
January 24, 2012 14:41
-
-
Save h-east/1670489 to your computer and use it in GitHub Desktop.
E477 error in :all! and :sall! (vim-jp/Issue#153)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 0dabc2ce136c src/ex_cmds.h | |
--- a/src/ex_cmds.h Tue Jan 10 22:31:32 2012 +0100 | |
+++ b/src/ex_cmds.h Sun Jan 29 03:40:01 2012 +0900 | |
@@ -102,7 +102,7 @@ | |
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_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 -r 0dabc2ce136c src/testdir/test31.in | |
--- a/src/testdir/test31.in Tue Jan 10 22:31:32 2012 +0100 | |
+++ b/src/testdir/test31.in Sun Jan 29 19:27:52 2012 +0900 | |
@@ -63,6 +63,13 @@ | |
:" 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 -r 0dabc2ce136c src/testdir/test31.ok | |
--- a/src/testdir/test31.ok Tue Jan 10 22:31:32 2012 +0100 | |
+++ b/src/testdir/test31.ok Sun Jan 29 19:27:52 2012 +0900 | |
@@ -9,3 +9,4 @@ | |
testtext 1 | |
testtext 3 3 3 | |
testtext 1 | |
+testtext 2 2 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment