mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Merge pull request #19212 from zeertzjq/vim-9.0.0024
vim-patch:9.0.{0024,0030}
This commit is contained in:
@@ -1804,7 +1804,8 @@ static int handle_mapping(int *keylenp, bool *timedout, int *mapdepth)
|
|||||||
bool is_plug_map = false;
|
bool is_plug_map = false;
|
||||||
|
|
||||||
// If typehead starts with <Plug> then remap, even for a "noremap" mapping.
|
// If typehead starts with <Plug> then remap, even for a "noremap" mapping.
|
||||||
if (typebuf.tb_buf[typebuf.tb_off] == K_SPECIAL
|
if (typebuf.tb_len >= 3
|
||||||
|
&& typebuf.tb_buf[typebuf.tb_off] == K_SPECIAL
|
||||||
&& typebuf.tb_buf[typebuf.tb_off + 1] == KS_EXTRA
|
&& typebuf.tb_buf[typebuf.tb_off + 1] == KS_EXTRA
|
||||||
&& typebuf.tb_buf[typebuf.tb_off + 2] == KE_PLUG) {
|
&& typebuf.tb_buf[typebuf.tb_off + 2] == KE_PLUG) {
|
||||||
is_plug_map = true;
|
is_plug_map = true;
|
||||||
|
@@ -59,7 +59,7 @@ func Test_matchfuzzy()
|
|||||||
|
|
||||||
%bw!
|
%bw!
|
||||||
eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v -> bufadd(v) + bufload(v)})
|
eval ['somebuf', 'anotherone', 'needle', 'yetanotherone']->map({_, v -> bufadd(v) + bufload(v)})
|
||||||
let l = getbufinfo()->map({_, v -> v.name})->matchfuzzy('ndl')
|
let l = getbufinfo()->map({_, v -> fnamemodify(v.name, ':t')})->matchfuzzy('ndl')
|
||||||
call assert_equal(1, len(l))
|
call assert_equal(1, len(l))
|
||||||
call assert_match('needle', l[0])
|
call assert_match('needle', l[0])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user