mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51: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',
|
||||
flags = bit.bor(BANG, RANGE),
|
||||
flags = bit.bor(BANG, RANGE, TRLBAR),
|
||||
addr_type = 'ADDR_OTHER',
|
||||
func = 'ex_fclose',
|
||||
},
|
||||
|
@ -10654,6 +10654,8 @@ describe('float window', function()
|
||||
|
|
||||
]])
|
||||
end
|
||||
-- allow use with trailing bar
|
||||
eq('hello', n.exec_capture('fclose | echo "hello"'))
|
||||
end)
|
||||
|
||||
it('correctly placed in or above message area', function()
|
||||
|
Reference in New Issue
Block a user