branch: elpa/evil commit 7e67e61271ca5b60efa341e6a4c1a0cfa636dc23 Author: Gabriel Barreto <gabriel.aquino.barr...@gmail.com> Commit: Tom Dalziel <33435574+tomd...@users.noreply.github.com>
Small fix in 'evil-command-window-ex No more "There are no full lines in the region" when 'hist is empty. Plus doing it like this is actually faster. --- evil-command-window.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evil-command-window.el b/evil-command-window.el index b4c2b1a3a6..21299a2dc0 100644 --- a/evil-command-window.el +++ b/evil-command-window.el @@ -175,8 +175,7 @@ Parameters passed in through IGNORED are ignored." (defun evil-command-window-insert-commands (hist) "Insert the commands in HIST." (let ((inhibit-modification-hooks t)) - (mapc #'(lambda (cmd) (insert cmd) (newline)) hist) - (reverse-region (point-min) (point-max))) + (mapc #'(lambda (cmd) (insert cmd) (newline)) (reverse hist))) (let ((prefix (propertize evil-command-window-cmd-key 'font-lock-face 'minibuffer-prompt))) (set-text-properties (point-min) (point-max) (list 'line-prefix prefix)))