Add missing remove tooltip call

This commit is contained in:
Francesco Abbate 2021-09-07 18:42:36 +02:00 committed by Francesco
parent b440a22581
commit 403b7f6fb6
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ local function replace(kind, default, fn)
local s = string.format("Replace %s %q With", kind, old) local s = string.format("Replace %s %q With", kind, old)
core.command_view:set_hidden_suggestions() core.command_view:set_hidden_suggestions()
core.command_view:enter(s, function(new) core.command_view:enter(s, function(new)
core.status_view:remove_tooltip()
insert_unique(core.previous_replace, new) insert_unique(core.previous_replace, new)
local n = doc():replace(function(text) local n = doc():replace(function(text)
return fn(text, old, new) return fn(text, old, new)