mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(extui): properly setup "more" window for changed buffer
Problem: Buffer setup after moving the message buffer to the "more"
window after ff95d7ff is incomplete.
Solution: Adjust and invoke tab_check_wins() to do the setup instead.
This commit is contained in:
@@ -170,11 +170,10 @@ end
|
||||
|
||||
--- Move message buffer to more window.
|
||||
local function msg_to_more(tar)
|
||||
api.nvim_win_set_buf(ext.wins[ext.tab].more, ext.bufs[tar])
|
||||
api.nvim_buf_delete(ext.bufs.more, { force = true })
|
||||
api.nvim_buf_set_name(ext.bufs[tar], 'vim._extui.more')
|
||||
ext.bufs.more, ext.bufs[tar], M[tar].count = ext.bufs[tar], -1, 0
|
||||
ext.tab_check_wins()
|
||||
ext.tab_check_wins() -- Create and setup new/moved buffer.
|
||||
M.set_pos('more')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user