Skip to content

Commit

Permalink
Merge pull request #161 from EpsilonKu/null-check-toggle
Browse files Browse the repository at this point in the history
Check regex for null
  • Loading branch information
EpsilonKu authored Sep 12, 2023
2 parents 70033cd + 0942eb5 commit 657e012
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/spectre/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ M.change_options = function(key)
state.options[key] = false
end
state.options[key] = not state.options[key]
if state.regex == nil then return ;end
state.regex.change_options(state_utils.get_replace_engine_config().options_value)
if state.query.search_query ~= nil then
ui.render_search_ui()
Expand Down

0 comments on commit 657e012

Please sign in to comment.