From d390eb248e058c243d11ed4a4cd11df5e1f1d21d Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 1 Jun 2022 18:19:33 +0200 Subject: [PATCH] Fix tooltip not getting removed after `find-replace:replace` --- data/core/commands/findreplace.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/core/commands/findreplace.lua b/data/core/commands/findreplace.lua index ccfbf118..c999103f 100644 --- a/data/core/commands/findreplace.lua +++ b/data/core/commands/findreplace.lua @@ -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 })