diff options
author | jgmdev <jgmdev@gmail.com> | 2022-09-16 11:37:36 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-09-16 11:37:36 -0400 |
commit | 82e4650234fd45225f86958b21b04f2a9a9b864a (patch) | |
tree | 13eafc086482fc4b8e2d9557510f3f3e9cfbe56f /plugins/regexreplacepreview.lua | |
parent | 07c0d2cfc15c8254bc3e66c88b9e3f33e7ee9e32 (diff) | |
download | lite-xl-plugins-82e4650234fd45225f86958b21b04f2a9a9b864a.tar.gz lite-xl-plugins-82e4650234fd45225f86958b21b04f2a9a9b864a.zip |
regexreplacepreview: drop deprecated call to commandview set text
Diffstat (limited to 'plugins/regexreplacepreview.lua')
-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, |