Fix tooltip not getting removed after `find-replace:replace`
This commit is contained in:
parent
13d062479a
commit
d390eb248e
|
@ -111,12 +111,14 @@ local function replace(kind, default, fn)
|
||||||
end)
|
end)
|
||||||
core.log("Replaced %d instance(s) of %s %q with %q", n, kind, old, new)
|
core.log("Replaced %d instance(s) of %s %q with %q", n, kind, old, new)
|
||||||
end,
|
end,
|
||||||
suggest = function() return core.previous_replace end, function()
|
suggest = function() return core.previous_replace end,
|
||||||
|
cancel = function()
|
||||||
core.status_view:remove_tooltip()
|
core.status_view:remove_tooltip()
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
suggest = function() return core.previous_find end, function()
|
suggest = function() return core.previous_find end,
|
||||||
|
cancel = function()
|
||||||
core.status_view:remove_tooltip()
|
core.status_view:remove_tooltip()
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue