From ed457a9d22991727eae7e488a016c315131d115f Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 1 Dec 2024 05:18:57 +0000 Subject: nits --- lib/eos/jao-minibuffer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/eos/jao-minibuffer.el') diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el index 77bd49a..42cef74 100644 --- a/lib/eos/jao-minibuffer.el +++ b/lib/eos/jao-minibuffer.el @@ -40,7 +40,7 @@ (defun jao-minibuffer--trim (s w) (if (< (string-width (or s "")) w) (format (format "%%%ds" (if jao-minibuffer-align-right w (- w))) s) - (substring s 0 w))) + (substring s 0 (min w (length s))))) (defun jao-minibuffer--width () (cond ((numberp jao-minibuffer-frame-width) jao-minibuffer-frame-width) -- cgit v1.2.3