Skip to content

Commit

Permalink
Fix default search engine
Browse files Browse the repository at this point in the history
  • Loading branch information
piersolenski committed Aug 29, 2023
1 parent 8c57bd2 commit c86191f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wtf/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local function remove_file_paths(inputString)
end

local function get_search_engine(search_engine)
local target_engine = search_engine or get_default_search_engine()
local target_engine = search_engine ~= "" and search_engine or get_default_search_engine()
local selected_engine = search_engines.sources[target_engine]

if not selected_engine then
Expand Down

0 comments on commit c86191f

Please sign in to comment.