summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-25 02:59:08 +0000
committerjao <jao@gnu.org>2021-11-25 02:59:08 +0000
commit9eced0df3948a4d700d58a05d672ab6c8d1d7f41 (patch)
treed8f53211d1b81834c1ee4101f240fc04b6a20ef6 /lib/eos
parent7c7f90ca8c3dbdec300e234eaa89ffd4254f4a03 (diff)
downloadelibs-9eced0df3948a4d700d58a05d672ab6c8d1d7f41.tar.gz
elibs-9eced0df3948a4d700d58a05d672ab6c8d1d7f41.tar.bz2
mini-fix: string-pixel-width
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-minibuffer.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index ba27ce5..ec7fa8d 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -72,7 +72,7 @@
(msg (propertize msg :minibuffer-message t)))
(when (not (string-empty-p msg))
(let* ((mw (jao-minibuffer--width))
- (w (mod (or w (string-width (or (current-message) ""))) mw))
+ (w (mod (or w (string-pixel-width (or (current-message) ""))) mw))
(w (- mw w jao-minibuffer-right-margin)))
(if (> w 0) (jao-minibuffer--trim msg w) "")))))