Fix tooltip not getting removed after `find-replace:replace`

This commit is contained in:
Guldoman 2022-06-01 18:19:33 +02:00
parent 13d062479a
commit d390eb248e
No known key found for this signature in database
GPG Key ID: EA928C8BDA1A8825
1 changed files with 4 additions and 2 deletions

View File

@ -111,12 +111,14 @@ local function replace(kind, default, fn)
end)
core.log("Replaced %d instance(s) of %s %q with %q", n, kind, old, new)
end,
suggest = function() return core.previous_replace end, function()
suggest = function() return core.previous_replace end,
cancel = function()
core.status_view:remove_tooltip()
end
})
end,
suggest = function() return core.previous_find end, function()
suggest = function() return core.previous_find end,
cancel = function()
core.status_view:remove_tooltip()
end
})