diff options
| author | Justin Burkett | 2022-01-02 09:33:02 -0500 |
|---|---|---|
| committer | Justin Burkett | 2022-01-02 09:33:02 -0500 |
| commit | 9f64733e4ac563c0cda3685acf4e1c2cf600319b (patch) | |
| tree | 10caca8ad90ddbffc14a273447351664cdb3558b | |
| parent | 3c0c7c24ef457c1de0ba6f20e2baab02f6c6beaf (diff) | |
| download | emacs-9f64733e4ac563c0cda3685acf4e1c2cf600319b.tar.gz emacs-9f64733e4ac563c0cda3685acf4e1c2cf600319b.zip | |
Fix typo in ellipsis
| -rw-r--r-- | which-key.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/which-key.el b/which-key.el index 870894644db..c13f4af25aa 100644 --- a/which-key.el +++ b/which-key.el | |||
| @@ -133,9 +133,9 @@ the default is \" : \"." | |||
| 133 | :group 'which-key | 133 | :group 'which-key |
| 134 | :type 'string) | 134 | :type 'string) |
| 135 | 135 | ||
| 136 | (defcustom which-key-elipsis | 136 | (defcustom which-key-ellipsis |
| 137 | (if which-key-dont-use-unicode ".." "…") | 137 | (if which-key-dont-use-unicode ".." "…") |
| 138 | "Elipsis to use when truncating. Default is \"…\", unless | 138 | "Ellipsis to use when truncating. Default is \"…\", unless |
| 139 | `which-key-dont-use-unicode' is non nil, in which case | 139 | `which-key-dont-use-unicode' is non nil, in which case |
| 140 | the default is \"..\"." | 140 | the default is \"..\"." |
| 141 | :group 'which-key | 141 | :group 'which-key |
| @@ -1589,7 +1589,7 @@ If KEY contains any \"special keys\" defined in | |||
| 1589 | (defsubst which-key--truncate-description (desc) | 1589 | (defsubst which-key--truncate-description (desc) |
| 1590 | "Truncate DESC description to `which-key-max-description-length'." | 1590 | "Truncate DESC description to `which-key-max-description-length'." |
| 1591 | (let* ((last-face (get-text-property (1- (length desc)) 'face desc)) | 1591 | (let* ((last-face (get-text-property (1- (length desc)) 'face desc)) |
| 1592 | (dots (which-key--propertize which-key-elipsis 'face last-face))) | 1592 | (dots (which-key--propertize which-key-ellipsis 'face last-face))) |
| 1593 | (if (and which-key-max-description-length | 1593 | (if (and which-key-max-description-length |
| 1594 | (> (length desc) which-key-max-description-length)) | 1594 | (> (length desc) which-key-max-description-length)) |
| 1595 | (concat (substring desc 0 which-key-max-description-length) dots) | 1595 | (concat (substring desc 0 which-key-max-description-length) dots) |