vim-patch:7.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

https://code.google.com/p/vim/source/detail?name=v7-4-542
This commit is contained in:
Felipe Morales
2015-01-15 20:18:15 -03:00
parent c525085773
commit 7fc952ab67
10 changed files with 255 additions and 40 deletions

View File

@@ -32,7 +32,7 @@ local ADDR_LINES = 0
local ADDR_WINDOWS = 1
local ADDR_ARGUMENTS = 2
local ADDR_LOADED_BUFFERS = 3
local ADDR_UNLOADED_BUFFERS = 4
local ADDR_BUFFERS = 4
local ADDR_TABS = 5
-- The following table is described in ex_cmds_defs.h file.
@@ -154,7 +154,7 @@ return {
{
command='buffer',
flags=bit.bor(BANG, RANGE, NOTADR, BUFNAME, BUFUNL, COUNT, EXTRA, EDITCMD, TRLBAR),
addr_type=ADDR_UNLOADED_BUFFERS,
addr_type=ADDR_BUFFERS,
func='ex_buffer',
},
{
@@ -286,7 +286,7 @@ return {
{
command='bwipeout',
flags=bit.bor(BANG, RANGE, NOTADR, BUFNAME, BUFUNL, COUNT, EXTRA, TRLBAR),
addr_type=ADDR_UNLOADED_BUFFERS,
addr_type=ADDR_BUFFERS,
func='ex_bunload',
},
{
@@ -2194,7 +2194,7 @@ return {
{
command='sbuffer',
flags=bit.bor(BANG, RANGE, NOTADR, BUFNAME, BUFUNL, COUNT, EXTRA, EDITCMD, TRLBAR),
addr_type=ADDR_UNLOADED_BUFFERS,
addr_type=ADDR_BUFFERS,
func='ex_buffer',
},
{