From c99617dc84fdbdeb75c9c2ab41009b597809249f Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Tue, 17 Oct 2023 11:26:50 +0200 Subject: [PATCH] Disable highlighting in `ccr/consult-history` --- init.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 98a4825..106db71 100644 --- a/init.el +++ b/init.el @@ -596,13 +596,15 @@ (let* ((history (delete-dups (when (> (ring-size eshell-history-ring) 0) (ring-elements eshell-history-ring)))) (history-highlighted (mapcar #'(lambda (cmd) - (with-temp-buffer - (insert cmd) - (forward-line 0) - (eshell-syntax-highlighting--parse-and-highlight 'command (point-max)) - (add-face-text-property (point-min) (point-max) '(:background nil)) - (buffer-string))) - history)) + (with-temp-buffer + (text-mode) + (insert cmd) + (forward-line 0) + ;; FIXME it breaks trying to highlight commands like `cd /ssh:host:~' + ;; (eshell-syntax-highlighting--parse-and-highlight 'command (point-max)) + (add-face-text-property (point-min) (point-max) '(:background nil)) + (buffer-string))) + history)) (command (completing-read "Command: " history-highlighted