diff options
-rw-r--r-- | plugins/regexreplacepreview.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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, |