Skip to content

Commit 7cbad16

Browse files
committed
Use string-trim-right instead of string-trim
... for compatibility with Emacs 26 and 27.
1 parent f0410fa commit 7cbad16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

god-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ returns a keymap to allow further key input, or nil if completely unbound."
358358
((string-match "\\(.*\\) C-\\(.\\)$" key-string)
359359
(let* ((prefix (match-string 1 key-string))
360360
(last (match-string 2 key-string))
361-
(fallback-key (string-trim (format "%s %s" prefix last)))
361+
(fallback-key (string-trim-right (format "%s %s" prefix last)))
362362
(fallback-vector (read-kbd-macro fallback-key t))
363363
(fallback-binding (key-binding fallback-vector)))
364364
(cond

0 commit comments

Comments
 (0)