Skip to content

Commit

Permalink
fix(parser): handle empty args
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent 60c9fdc commit e667da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/trouble/config/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ end

---@return trouble.Config
function M.parse(input)
if vim.trim(input) == "" then
return {}
end
---@type string[]
local t = pattern:match(input)
if not t then
Expand Down

0 comments on commit e667da7

Please sign in to comment.