Skip to content

Commit

Permalink
ensure agtype is truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia committed Jul 5, 2016
1 parent cdaf008 commit 4ebb112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,9 @@ denoter file/dir is found or uses dumb-jump-default-profile"
(defun dumb-jump-get-ag-type-by-language (language)
"Returns list of ag type argument for a LANGUAGE"
(-distinct (--map (plist-get it :agtype)
(--filter (string= (plist-get it :language) language)
(--filter (and
(plist-get it :agtype)
(string= (plist-get it :language) language))
dumb-jump-language-file-exts))))

(defun dumb-jump-get-rules-by-language (language)
Expand Down

0 comments on commit 4ebb112

Please sign in to comment.