irongit

A Neovim plugin enabling you to solve LeetCode problems.

fix(console): draw extmarks on `InsertLeave`

kawreauthored
parent 2733ce1commit 0ee58f235b0473a9b372a2b25b5d059c0cd1adeeBrowse files

1 file changed, +6 -4

+6-4lua/leetcode-ui/popup/console/testcase.lua
@@ -127,10 +127,12 @@ function Testcase:append(input)
127127 end
128128
129129 function Testcase:autocmds()
130- self:on(
131- { "TextChanged", "TextChangedI", "TextChangedP", "TextChangedT" },
132- function() self:draw_extmarks() end
133- )
130+ self:on({
131+ "TextChanged",
132+ "TextChangedI",
133+ "TextChangedP",
134+ "InsertLeave",
135+ }, function() self:draw_extmarks() end)
134136 end
135137
136138 function Testcase:mount()