summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-12-08 04:16:44 +0100
committerBram Moolenaar <Bram@vim.org>2014-12-08 04:16:44 +0100
commitf1d6ccf2f9c8a8ae2c0ec4577946397c103ead2b (patch)
treed400dfd4f59ed200c17eb4df1ffdc6c3d273d192 /src/ex_cmds.h
parentb2a851fee41a5a1faddcb862aef2beca69dc063a (diff)
downloadvim-git-f1d6ccf2f9c8a8ae2c0ec4577946397c103ead2b.tar.gz
updated for version 7.4.542v7.4.542
Problem: Using a range for window and buffer commands has a few problems. Cannot specify the type of range for a user command. Solution: Add the -addr argument for user commands. Fix problems. (Marcin Szamotulski)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 5574ea7bc..fc6a8ac0f 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -63,7 +63,7 @@
#define ADDR_WINDOWS 1
#define ADDR_ARGUMENTS 2
#define ADDR_LOADED_BUFFERS 3
-#define ADDR_UNLOADED_BUFFERS 4
+#define ADDR_BUFFERS 4
#define ADDR_TABS 5
#ifndef DO_DECLARE_EXCMD
@@ -161,7 +161,7 @@ EX(CMD_aunmenu, "aunmenu", ex_menu,
ADDR_LINES),
EX(CMD_buffer, "buffer", ex_buffer,
BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR,
- ADDR_UNLOADED_BUFFERS),
+ ADDR_BUFFERS),
EX(CMD_bNext, "bNext", ex_bprevious,
BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR,
ADDR_LINES),
@@ -227,7 +227,7 @@ EX(CMD_bunload, "bunload", ex_bunload,
ADDR_LOADED_BUFFERS),
EX(CMD_bwipeout, "bwipeout", ex_bunload,
BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR,
- ADDR_UNLOADED_BUFFERS),
+ ADDR_BUFFERS),
EX(CMD_change, "change", ex_change,
BANG|WHOLEFOLD|RANGE|COUNT|TRLBAR|CMDWIN|MODIFY,
ADDR_LINES),
@@ -1184,7 +1184,7 @@ EX(CMD_saveas, "saveas", ex_write,
ADDR_LINES),
EX(CMD_sbuffer, "sbuffer", ex_buffer,
BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR,
- ADDR_UNLOADED_BUFFERS),
+ ADDR_BUFFERS),
EX(CMD_sbNext, "sbNext", ex_bprevious,
RANGE|NOTADR|COUNT|EDITCMD|TRLBAR,
ADDR_LINES),