mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(extui): disable cmdline highlighter when showing a message (#34887)
Problem: When message is moved from message window to cmdline, the cmdline highlighter is not disabled. Solution: Disable the highlighter (and only scroll to bottom when message was moved to pager).
This commit is contained in:
@ -199,7 +199,11 @@ local function msg_to_full(src)
|
||||
hlopts.end_col, hlopts.hl_group = mark[4].end_col, mark[4].hl_group
|
||||
api.nvim_buf_set_extmark(ext.bufs[tar], ext.ns, srow + mark[2], mark[3], hlopts)
|
||||
end
|
||||
api.nvim_command('norm! G')
|
||||
if tar == 'cmd' and ext.cmd.highlighter then
|
||||
ext.cmd.highlighter.active[ext.bufs.cmd] = nil
|
||||
elseif tar == 'pager' then
|
||||
api.nvim_command('norm! G')
|
||||
end
|
||||
M.virt.msg[M.virt.idx.spill][1] = nil
|
||||
else
|
||||
for _, id in pairs(M.virt.ids) do
|
||||
|
Reference in New Issue
Block a user