Skip to content

Commit

Permalink
Use string-match-p over string-match
Browse files Browse the repository at this point in the history
Since we don't need the match data
  • Loading branch information
rgrinberg authored and syl20bnr committed Jun 24, 2018
1 parent aac5bc3 commit 73b30bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ with a key sequence."

(defun evil-escape--is-magit-buffer ()
"Return non nil if the current buffer is a Magit buffer."
(string-match "magit" (symbol-name major-mode)))
(string-match-p "magit" (symbol-name major-mode)))

(provide 'evil-escape)

Expand Down

0 comments on commit 73b30bf

Please sign in to comment.