fix(messages): truncate warning messages only in display (#38901)

For now, add a private "_truncate" flag to nvim_echo, using a truncation
method similar to showmode().
This commit is contained in:
zeertzjq
2026-04-09 12:11:32 +08:00
committed by GitHub
parent 3a4a66017b
commit 9c5fba5df0
9 changed files with 117 additions and 22 deletions

View File

@@ -239,6 +239,7 @@ error('Cannot require a meta file')
--- @class vim.api.keyset.echo_opts
--- @field err? boolean
--- @field verbose? boolean
--- @field _truncate? boolean
--- @field kind? string
--- @field id? integer|string
--- @field title? string