diff options
| -rw-r--r-- | lisp/which-key.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/which-key.el b/lisp/which-key.el index a2355527dd3..a4720040f7a 100644 --- a/lisp/which-key.el +++ b/lisp/which-key.el | |||
| @@ -2005,10 +2005,12 @@ that width." | |||
| 2005 | col-keys 2 | 2005 | col-keys 2 |
| 2006 | which-key-min-column-description-width))) | 2006 | which-key-min-column-description-width))) |
| 2007 | (col-width (+ col-key-width col-sep-width col-desc-width)) | 2007 | (col-width (+ col-key-width col-sep-width col-desc-width)) |
| 2008 | (col-format (concat "%" (int-to-string col-key-width) | 2008 | (col-format (concat "%" (int-to-string col-key-width) "s%s%s"))) |
| 2009 | "s%s%-" (int-to-string col-desc-width) "s"))) | ||
| 2010 | (cons col-width | 2009 | (cons col-width |
| 2011 | (mapcar (lambda (k) (apply #'format col-format k)) | 2010 | (mapcar (pcase-lambda (`(,key ,sep ,desc ,_doc)) |
| 2011 | (concat | ||
| 2012 | (format col-format key sep desc) | ||
| 2013 | (make-string (- col-desc-width (length desc)) ?\s))) | ||
| 2012 | col-keys)))) | 2014 | col-keys)))) |
| 2013 | 2015 | ||
| 2014 | (defun which-key--partition-list (n list) | 2016 | (defun which-key--partition-list (n list) |