Skip to content

Commit 0ee58f2

Browse files
committed
fix(console): draw extmarks on InsertLeave
1 parent 2733ce1 commit 0ee58f2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lua/leetcode-ui/popup/console/testcase.lua

+6-4
Original file line numberDiff line numberDiff line change
@@ -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()

0 commit comments

Comments
 (0)