feature/evil: minor refactor (when => if)

This commit is contained in:
Henrik Lissner 2018-03-20 23:56:54 -04:00
parent 7574e13677
commit 850acebad1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -170,9 +170,9 @@
;; Other commands can make use of this
(evil-define-interactive-code "<//>"
:ex-arg buffer-match (list (when (evil-ex-p) evil-ex-argument)))
:ex-arg buffer-match (list (if (evil-ex-p) evil-ex-argument)))
(evil-define-interactive-code "<//g>"
:ex-arg global-match (list (when (evil-ex-p) evil-ex-argument)))
:ex-arg global-match (list (if (evil-ex-p) evil-ex-argument)))
;; Forward declare these so that ex completion works, even if the autoloaded
;; functions aren't loaded yet.