diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-04-26 11:02:06 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-04-26 11:02:06 +0200 |
| commit | d10fec7da685cb4a402e1ba7ac53b3e6d8168fc3 (patch) | |
| tree | 19be92ec7e50685055d8eebc9ed296aca753ae87 | |
| parent | e72079d65612909fe51dfa2fa72c737d0868f09e (diff) | |
Fix display in shell-mode (See #13)
Thanks, @manuel-uberti!
| -rw-r--r-- | corfu.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |
