From: Xiyue Deng Date: Wed, 12 Nov 2025 14:12:55 -0800 Subject: Give one more space for the annotation for minibuffer right align Currently the annotation is perfectly right aligned, but this gives unpleasant display under console, which will force a line-wrap and push the ending `*' to the next line. For example: ,---- | some-activitiy-1 1 bufs, 0 files, 2 days* | some-activitiy-2 2 bufs, 0 files, 3 days* `---- Will become ,---- | some-activitiy-1 1 bufs, 0 files, 2 days\ | * | some-activitiy-2 2 bufs, 0 files, 3 days\ | * `---- This commit adds one more space when running under console to make the display better, and keep GUI mode untouched. Forwarded: https://github.com/alphapapa/activities.el/pull/154 --- activities.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activities.el b/activities.el index 6e7ce9a..d873880 100644 --- a/activities.el +++ b/activities.el @@ -984,7 +984,8 @@ which see, with DEFAULT." 'face `(:foreground ,age-color :weight bold))) (dirty-annotation (if dirtyp (propertize "*" 'face 'bold) " "))) (concat (propertize " " 'display - `(space :align-to (- right ,(+ 1 (length annotation) + `(space :align-to (- right ,(+ (if (display-graphic-p) 1 2) + (length annotation) (length age-annotation))))) annotation age-annotation dirty-annotation))))) (activity-table (str pred action)