fix: error message outside of git repo (#116)

in case ignored branches have been set and the current dir is not a
git directory no more error messages will be thrown
main
Matthias Bilger 2024-04-04 14:42:31 +02:00 committed by GitHub
parent c157b89b5c
commit ca9900c31e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ end
---@param heystack table
---@return boolean
function M.table_match(needle, heystack, escape_fct)
if needle == nil then
return false
end
return heystack
and next(vim.tbl_filter(function(pattern)
if pattern.exact then