diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-29 07:58:49 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-04-29 23:48:27 -0400 |
commit | 7bd97127b4e45dcef1159603834b04ef0dcadfd7 (patch) | |
tree | 650f557edef609d8fa5c764503f0da880e55a07d /src/nvim/ex_cmds.lua | |
parent | 059c3fc2f952b42824ca37610c040c938a75de5c (diff) | |
download | rneovim-7bd97127b4e45dcef1159603834b04ef0dcadfd7.tar.gz rneovim-7bd97127b4e45dcef1159603834b04ef0dcadfd7.tar.bz2 rneovim-7bd97127b4e45dcef1159603834b04ef0dcadfd7.zip |
vim-patch:7.4.2244
Problem: Adding pattern to ":oldfiles" is not a generic solution.
Solution: Add the ":filter /pat/ cmd" command modifier. Only works for some
commands right now.
https://github.com/vim/vim/commit/7b668e83d0635d082b7ec90d7d2aa30a9d7d8928
Diffstat (limited to 'src/nvim/ex_cmds.lua')
-rw-r--r-- | src/nvim/ex_cmds.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 844d46ab26..2566dd2f48 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -931,6 +931,12 @@ return { func='ex_filetype', }, { + command='filter', + flags=bit.bor(NEEDARG, EXTRA, NOTRLCOM), + addr_type=ADDR_LINES, + func='ex_wrongmodifier', + }, + { command='find', flags=bit.bor(RANGE, NOTADR, BANG, FILE1, EDITCMD, ARGOPT, TRLBAR), addr_type=ADDR_LINES, @@ -1810,7 +1816,7 @@ return { }, { command='oldfiles', - flags=bit.bor(BANG, TRLBAR, NOTADR, EXTRA, SBOXOK, CMDWIN), + flags=bit.bor(BANG, TRLBAR, SBOXOK, CMDWIN), addr_type=ADDR_LINES, func='ex_oldfiles', }, |