diff options
| author | phanium <91544758+phanen@users.noreply.github.com> | 2025-07-24 19:45:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-24 11:45:41 +0000 |
| commit | e512efe3696b2ed18db55683fecf42bbc733c767 (patch) | |
| tree | 47d0bbd899164764ac0d024169009e2394cf0c6b /runtime/lua/vim/_extui | |
| parent | 6190b6bc1d247cfeffd9189aa046bb6947119023 (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.lua | 2 |
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 |
