emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil 7e67e61271: Small fix in 'evil-command-window-ex


From: ELPA Syncer
Subject: [nongnu] elpa/evil 7e67e61271: Small fix in 'evil-command-window-ex
Date: Tue, 28 Jun 2022 15:58:18 -0400 (EDT)

branch: elpa/evil
commit 7e67e61271ca5b60efa341e6a4c1a0cfa636dc23
Author: Gabriel Barreto <gabriel.aquino.barreto@gmail.com>
Commit: Tom Dalziel <33435574+tomdl89@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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]