Skip to content

Commit

Permalink
swiper.el (swiper--candidates): Add inhibit-field-text-motion
Browse files Browse the repository at this point in the history
Results in better candidates for e.g *slime-repl*.

Fixes #1713
  • Loading branch information
abo-abo committed Aug 13, 2018
1 parent e975622 commit 2f5576a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swiper.el
Expand Up @@ -351,7 +351,8 @@
NUMBERS-WIDTH, when specified, is used for width spec of line
numbers; replaces calculating the width from buffer line count."
(let ((n-lines (count-lines (point-min) (point-max))))
(let* ((inhibit-field-text-motion t)
(n-lines (count-lines (point-min) (point-max))))
(if (and visual-line-mode
;; super-slow otherwise
(< (buffer-size) 20000)
Expand Down

0 comments on commit 2f5576a

Please sign in to comment.