branch: master
commit 1d08b2965e9c239713d2ad397cd12864bad0d305
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper-isearch): Ensure font lock
    
    The performance impact is minimal, since we don't do it for large buffers.
    For smaller buffers, it takes < 0.05s to font lock them.
---
 swiper.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/swiper.el b/swiper.el
index 62a8907..83853a1 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1359,6 +1359,7 @@ When not running `swiper-isearch' already, start it."
   "A `swiper' that's not line-based."
   (interactive)
   (swiper--init)
+  (swiper-font-lock-ensure)
   (setq swiper--isearch-point-history
         (list
          (cons "" (point))))

Reply via email to