summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-10 22:49:10 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-10 22:49:10 +0100
commit9d71246945d59015255ea7845c619ef49c14c5fe (patch)
treeeaf1efe5c10de76cf79e372d59f19d03b0d2a814
parent0eac0f7406b56607b1435b1bfa5eb8c50d495269 (diff)
corfu--popup-show: More robust right margin
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 3b9a34e..6e9fc47 100644
--- a/corfu.el
+++ b/corfu.el
@@ -398,7 +398,7 @@ A scroll bar is displayed from LO to LO+BAR."
(rm (ceiling (* cw corfu-right-margin-width)))
(bw (ceiling (min rm (* cw corfu-bar-width))))
(lmargin (and (> lm 0) (propertize " " 'display `(space :width (,lm)))))
- (rmargin (and (> rm 0) (propertize " " 'display `(space :width (,rm)))))
+ (rmargin (and (> rm 0) (propertize " " 'display `(space :align-to right))))
(sbar (when (> bw 0)
(concat (propertize " " 'display `(space :align-to (- right (,rm))))
(propertize " " 'display `(space :width (,(- rm bw))))