diff --git a/evil-search.el b/evil-search.el index 4d35045b..9f22335e 100644 --- a/evil-search.el +++ b/evil-search.el @@ -546,11 +546,12 @@ The following properties are supported: (defun evil-ex-hl-buffers() "Return buffers to highlight in." (let ((bufs (list)) buf) - (dolist (win (window-list nil -1 nil)) - (setq buf (window-buffer win)) - (unless (or (memq buf bufs) - (memq (with-current-buffer buf major-mode) evil-ex-hl-skip-major-mode-list)) - (setq bufs (append bufs (list buf))))) + (dolist (frame (frame-list)) + (dolist (win (window-list frame -1 nil)) + (setq buf (window-buffer win)) + (unless (or (memq buf bufs) + (memq (with-current-buffer buf major-mode) evil-ex-hl-skip-major-mode-list)) + (setq bufs (append bufs (list buf)))))) bufs)) (defun evil-ex-delete-hl (name)