summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--corfu.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 41ed6ad..d94424e 100644
--- a/corfu.el
+++ b/corfu.el
@@ -179,7 +179,8 @@ If `line-spacing/=nil' or in text-mode, the background color is used instead.")
"Show LINES as popup at POS, with IDX highlighted and scrollbar from LO to LO+BAR."
(save-excursion
(goto-char pos)
- (let* ((size (corfu--char-size))
+ (let* ((inhibit-field-text-motion t) ;; ignore field boundaries (shell-mode!)
+ (size (corfu--char-size))
;; XXX Deactivate fancy border on terminal or if line-spacing is used
(fancy (and (not line-spacing) (display-graphic-p)))
(lborder-curr (corfu--border (car size) (cdr size) 1 'corfu-border 'corfu-current))