branch: externals/window-commander commit e43021aa7efb45d327b66d2f674563051ceea196 Author: Daniel Semyonov <dan...@dsemy.com> Commit: Daniel Semyonov <dan...@dsemy.com>
* swsw.el (swsw-format-id): Use 'format-spec' instead of 'format' --- swsw.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swsw.el b/swsw.el index a7b2fd0d8e..3ec4742d5b 100644 --- a/swsw.el +++ b/swsw.el @@ -219,8 +219,9 @@ If set to `lighter', use a mode line lighter." (defun swsw-format-id (window) "Format an ID string for WINDOW." - (format swsw-id-format - (apply #'string (window-parameter window 'swsw-id)))) + (format-spec swsw-id-format + `((?s . + ,(apply #'string (window-parameter window 'swsw-id)))))) (defun swsw--mode-line-display () "Display window IDs at the beginning of the mode line."