mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(cmd): bar "|" not allowed after :fclose #34613
Problem: `:fclose` command failed when used with trailing `|` bar. Solution: Add `TRLBAR` flag to fclose command to support trailing bar.
This commit is contained in:
@ -1052,7 +1052,7 @@ M.cmds = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
command = 'fclose',
|
command = 'fclose',
|
||||||
flags = bit.bor(BANG, RANGE),
|
flags = bit.bor(BANG, RANGE, TRLBAR),
|
||||||
addr_type = 'ADDR_OTHER',
|
addr_type = 'ADDR_OTHER',
|
||||||
func = 'ex_fclose',
|
func = 'ex_fclose',
|
||||||
},
|
},
|
||||||
|
@ -10654,6 +10654,8 @@ describe('float window', function()
|
|||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
|
-- allow use with trailing bar
|
||||||
|
eq('hello', n.exec_capture('fclose | echo "hello"'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('correctly placed in or above message area', function()
|
it('correctly placed in or above message area', function()
|
||||||
|
Reference in New Issue
Block a user