Skip to content

Commit

Permalink
Use derived-mode-p instead of checking buffer names
Browse files Browse the repository at this point in the history
  • Loading branch information
phikal committed May 18, 2022
1 parent dbb9154 commit 518c4a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -2112,8 +2112,7 @@ to keep looking for another root."
(dumb-jump-git-grep-installed?)
(dumb-jump-grep-installed?)))
(dumb-jump-issue-result "nogrep"))
((or (string= (buffer-name) "*shell*")
(string= (buffer-name) "*eshell*"))
((derived-mode-p 'shell-mode 'eshell-mode)
(dumb-jump-fetch-shell-results prompt))
((and (not prompt) (not (region-active-p)) (not (thing-at-point 'symbol)))
(dumb-jump-issue-result "nosymbol"))
Expand Down

0 comments on commit 518c4a3

Please sign in to comment.