[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu a01d068 13/14: Do not colorize left border (See #
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu a01d068 13/14: Do not colorize left border (See #6) |
Date: |
Sat, 17 Apr 2021 10:25:44 -0400 (EDT) |
branch: externals/corfu
commit a01d0689a5fbdeaea553ecf5666d00785e991f48
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Do not colorize left border (See #6)
---
corfu.el | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/corfu.el b/corfu.el
index 24ddf89..e9d1a76 100644
--- a/corfu.el
+++ b/corfu.el
@@ -183,7 +183,7 @@ 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 between LO
and LO+BAR."
(let* ((size (corfu--char-size))
;; XXX Deactivate fancy border on terminal or if line-spacing is used
- (fancy-ui (and (not line-spacing) (display-graphic-p)))
+ (fancy (and (not line-spacing) (display-graphic-p)))
(lborder-curr (corfu--border (car size) (cdr size) 1 'corfu-border
'corfu-current))
(rborder-curr (corfu--border (car size) (cdr size) -1 'corfu-border
'corfu-current))
(rbar-curr (corfu--border (car size) (cdr size) (- (ceiling (car
size) 3))
@@ -218,12 +218,10 @@ If `line-spacing/=nil' or in text-mode, the background
color is used instead.")
(dolist (line lines)
(let ((bufline (buffer-substring (point) (line-end-position)))
(str (concat
- (if fancy-ui
- (if (= row idx) lborder-curr lborder)
- (propertize " " 'face 'corfu-border))
+ (if fancy (if (= row idx) lborder-curr lborder) " ")
line
(make-string (- width (string-width line)) 32)
- (if fancy-ui
+ (if fancy
(if (and lo (<= lo row (+ lo bar)))
(if (= row idx) rbar-curr rbar)
(if (= row idx) rborder-curr rborder))
- [elpa] externals/corfu 2ebd35f 12/14: corfu-map: Bind M-n and M-p, (continued)
- [elpa] externals/corfu 2ebd35f 12/14: corfu-map: Bind M-n and M-p, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 4c2c997 14/14: Version 0.2, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 41eb724 02/14: Ignore corfu-abort if documentation/location window is shown, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 82474fb 01/14: Fix typo in corfu-minor-mode, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 7fcd09b 08/14: README: Update caveat, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 6e9b8ef 10/14: Add corfu-completion-styles, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 10660b4 07/14: corfu-first: Jump to the prompt if first candidate is selected, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu cf7c6c9 05/14: Do not show annotation in candidate preview (See #2), Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu cca1eaf 09/14: Extract corfu--move-prefix-candidates-to-front, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 6e91059 06/14: Fix some face issues, add comment about face usage, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu a01d068 13/14: Do not colorize left border (See #6),
Protesilaos Stavrou <=