aboutsummaryrefslogtreecommitdiff
path: root/evil-command-window.el
diff options
context:
space:
mode:
authorEmanuel Evans <emanuel.evans@gmail.com>2014-07-08 08:04:10 -0700
committerEmanuel Evans <emanuel.evans@gmail.com>2014-07-08 08:04:10 -0700
commit94004f4d815762b81ac9c03d4bdd9093fa5ede05 (patch)
tree280bdaa7897065f43385b9057571a1fb84ddd358 /evil-command-window.el
parent9d56d8a09f0c66cabf6dabd195f33b8f20dbca40 (diff)
Make q: commands go into evil-ex-history
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 c486d8b..add71ea 100644
--- a/evil-command-window.el
+++ b/evil-command-window.el
@@ -91,7 +91,9 @@ function to execute."
"Execute RESULT as an ex command in the appropriate buffer."
(unless (string-match-p "^ *$" result)
(let ((evil-ex-current-buffer evil-command-window-current-buffer))
- (evil-ex-execute result))))
+ (evil-ex-execute result))
+ (unless (equal result (car evil-ex-history))
+ (setq evil-ex-history (cons result evil-ex-history)))))
(defun evil-command-window-set-margin (cmd-key)
"Display CMD-KEY as a prefix to all lines in the margin if possible."