diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-11-20 11:29:40 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-11-20 11:29:40 +0100 |
| commit | fde6bb33476f12fab7328fa78d919a55440f91ba (patch) | |
| tree | 97933e35a69e25386390a413c2f1b222bc0ec90f /extensions | |
| parent | 5380f0a232561f8268f494044379a778895f5659 (diff) | |
corfu-popupinfo: Fix margin computation
Diffstat (limited to 'extensions')
| -rw-r--r-- | extensions/corfu-popupinfo.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/corfu-popupinfo.el b/extensions/corfu-popupinfo.el index 1839eea..c08ab30 100644 --- a/extensions/corfu-popupinfo.el +++ b/extensions/corfu-popupinfo.el @@ -204,8 +204,8 @@ all values are in pixels relative to the origin. See (defun corfu-popupinfo--size () "Return popup size as pair." (let* ((cw (default-font-width)) - (margin (* cw (+ (alist-get 'left-margin-width corfu--buffer-parameters) - (alist-get 'right-margin-width corfu--buffer-parameters)))) + (margin (* cw (+ (alist-get 'left-margin-width corfu-popupinfo--buffer-parameters) + (alist-get 'right-margin-width corfu-popupinfo--buffer-parameters)))) (max-height (* (default-line-height) corfu-popupinfo-max-height)) (max-width (+ margin (* cw corfu-popupinfo-max-width)))) (if corfu-popupinfo-resize |
