summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_extui
diff options
context:
space:
mode:
authorphanium <91544758+phanen@users.noreply.github.com>2025-07-24 19:45:41 +0800
committerGitHub <noreply@github.com>2025-07-24 11:45:41 +0000
commite512efe3696b2ed18db55683fecf42bbc733c767 (patch)
tree47d0bbd899164764ac0d024169009e2394cf0c6b /runtime/lua/vim/_extui
parent6190b6bc1d247cfeffd9189aa046bb6947119023 (diff)
fix(extui): attempt to perform arithmetic on field 'last_emsg' (#35047)
Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_extui')
-rw-r--r--runtime/lua/vim/_extui/messages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui/messages.lua b/runtime/lua/vim/_extui/messages.lua
index f7632d8bfa..5fc247020d 100644
--- a/runtime/lua/vim/_extui/messages.lua
+++ b/runtime/lua/vim/_extui/messages.lua
@@ -388,7 +388,7 @@ function M.msg_show(kind, content, replace_last, _, append)
end
-- Store the time when an important message was emitted in order to not overwrite
-- it with 'last' virt_text in the cmdline so that the user has a chance to read it.
- M.cmd.last_emsg = kind == 'emsg' or kind == 'wmsg' and os.time() or M.cmd.last_emsg
+ M.cmd.last_emsg = (kind == 'emsg' or kind == 'wmsg') and os.time() or M.cmd.last_emsg
-- Should clear the search count now, mark itself is cleared by invalidate.
M.virt.last[M.virt.idx.search][1] = nil
end