diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-04-28 12:37:33 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-04-28 12:37:33 +0200 |
| commit | fef837718bc138b2ad6844f588a6e51eefae5726 (patch) | |
| tree | ab92a62524f6adf5037dc766900d5d3295970d86 | |
| parent | 9aa922deb772689410d9d1eb2027b10794fc6582 (diff) | |
Add popup comment (See #10 and #15)
| -rw-r--r-- | corfu.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -185,6 +185,15 @@ If `line-spacing/=nil' or in text-mode, the background color is used instead.") :background ,(face-attribute bg :background) :foreground ,(face-attribute fg :foreground))))) +;; XXX The popup code is unreliable. There are many problematic +;; scenarios where the popup may fail: +;; 1. display-line-numbers-mode +;; 2. Overhanging lines (popup at the end of buffer) +;; 3. Overhanging columns (popup at the end of line) +;; 4. Outline folding +;; 5. Wide characters like TAB +;; 6. Lines with invisible/display properties (Org folding) +;; 7. Scrolled windows (defun corfu--popup (pos lines &optional curr lo bar) "Show LINES as popup at POS, with CURR highlighted and scrollbar from LO to LO+BAR." (save-excursion |
