aboutsummaryrefslogtreecommitdiff
path: root/evil-command-window.el
diff options
context:
space:
mode:
authorFrank Fischer <frank-fischer@shadow-soft.de>2016-02-23 11:48:26 +0100
committerFrank Fischer <frank-fischer@shadow-soft.de>2016-02-23 11:48:26 +0100
commita522a74c91fbf410ee99621faed3bac220628391 (patch)
treeadfeff354389a680e1d9f3d5591ee1304dc05e4b /evil-command-window.el
parent73072022ac3288c72cbbd3374ef5502781371903 (diff)
evil-command-window.el: Declare `evil-search-module`
Diffstat (limited to 'evil-command-window.el')
-rw-r--r--evil-command-window.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/evil-command-window.el b/evil-command-window.el
index cff6dc8..83245f7 100644
--- a/evil-command-window.el
+++ b/evil-command-window.el
@@ -36,6 +36,8 @@
(require 'evil-search)
(require 'evil-ex)
+(defvar evil-search-module)
+
(define-derived-mode evil-command-window-mode fundamental-mode "Evil-cmd"
"Major mode for the Evil command line window."
(auto-fill-mode 0)
@@ -128,7 +130,7 @@ function to execute."
"Search for RESULT using FORWARD to determine direction."
(unless (zerop (length result))
- (if (and (boundp 'evil-search-module) (eq evil-search-module 'evil-search))
+ (if (eq evil-search-module 'evil-search)
(progn
(setq evil-ex-search-pattern (evil-ex-make-search-pattern result)
evil-ex-search-direction (if forward 'forward 'backward))