branch: master
commit 0332b3e403717dd2db3b3cdae1ff92ff0ec1d6f7
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Remove 'field text property for twittering-mode
* swiper.el (swiper--candidates): Update.
(swiper-font-lock-ensure): Add `twittering-mode'.
Fixes #310
---
swiper.el | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/swiper.el b/swiper.el
index a33f0f3..a744de9 100644
--- a/swiper.el
+++ b/swiper.el
@@ -226,6 +226,7 @@
occur-edit-mode
bongo-mode
eww-mode
+ twittering-mode
w3m-mode)))
(unless (> (buffer-size) 100000)
(if (fboundp 'font-lock-ensure)
@@ -284,6 +285,8 @@ count."
(end-of-visual-line)
(point))
(line-end-position)))))))
+ (when (eq major-mode 'twittering-mode)
+ (remove-text-properties 0 (length str) '(field) str))
(put-text-property 0 1 'display
(format swiper--format-spec
(cl-incf line-number))