diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-21 15:52:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 15:52:47 +0200 |
commit | 40574b424f48308e06093031b1324509b64a8cc3 (patch) | |
tree | 2f7f83148d692a64c74a92eb7438ee26eac4310d /test | |
parent | 752c6ce4ad717620f34cc27e788fd9665c488565 (diff) | |
parent | ae4ca4edf89ece433b61e8bf92c412298b58d9ea (diff) | |
download | rneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.gz rneovim-40574b424f48308e06093031b1324509b64a8cc3.tar.bz2 rneovim-40574b424f48308e06093031b1324509b64a8cc3.zip |
Merge pull request #25624 from glepnir/fix_25598
feat(complete): support f flag for complete buffer name part
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/editor/completion_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua index ea3397d50d..cb5e0b0b14 100644 --- a/test/functional/editor/completion_spec.lua +++ b/test/functional/editor/completion_spec.lua @@ -1228,4 +1228,28 @@ describe('completion', function() expect('colorscheme NOSUCHCOLORSCHEME') assert_alive() end) + + it('complete with f flag #25598', function() + screen:try_resize(20, 9) + local bufname = 'foo/bar.txt' + local hidden = 'fooA/.hidden' + if helpers.is_os('win') then + bufname = 'C:\\foo\\bar.txt' + hidden = 'C:\\fooA\\.hidden' + end + command('set complete+=f | edit '.. bufname ..' | edit '..hidden) + feed('i<C-n>') + + screen:expect{grid=[[ + foo^ | + {2:foo }{0: }| + {1:bar }{0: }| + {1:txt }{0: }| + {1:fooA }{0: }| + {1:.hidden }{0: }| + {0:~ }| + {0:~ }| + {3:-- }{4:match 1 of 5} | + ]]} + end) end) |