[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu d10fec7 1/2: Fix display in shell-mode (See #13)
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu d10fec7 1/2: Fix display in shell-mode (See #13) |
Date: |
Mon, 26 Apr 2021 06:33:38 -0400 (EDT) |
branch: externals/corfu
commit d10fec7da685cb4a402e1ba7ac53b3e6d8168fc3
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix display in shell-mode (See #13)
Thanks, @manuel-uberti!
---
corfu.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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))