From 82e4650234fd45225f86958b21b04f2a9a9b864a Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 16 Sep 2022 11:37:36 -0400 Subject: regexreplacepreview: drop deprecated call to commandview set text --- plugins/regexreplacepreview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/regexreplacepreview.lua b/plugins/regexreplacepreview.lua index 8abd39c..18d692b 100644 --- a/plugins/regexreplacepreview.lua +++ b/plugins/regexreplacepreview.lua @@ -89,13 +89,13 @@ end command.add("core.docview", { ["regex-replace-preview:find-replace-regex"] = function() - core.command_view:set_text("/") local old_lines = {} local view = core.active_view local doc = view.doc local original_selection = { doc:get_selection(true) } local selection = doc:has_selection() and { doc:get_selection(true) } or {} core.command_view:enter("Regex Replace (enter pattern as /old/new/)", { + text = "/", submit = function(pattern) regex_replace_file(view, pattern, {}, false, selection[1], selection[3]) end, -- cgit v1.2.3