Skip to content

Commit dec035f

Browse files
committed
Merge pull request #8 from john-patterson/master
Added type check to let* capital in resize-window
2 parents 1760e61 + 7323f8a commit dec035f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resize-window.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ to enlarge right."
192192
(while reading-characters
193193
(let* ((char (resize-window--match-alias (read-key)))
194194
(choice (assoc char resize-window-dispatch-alist))
195-
(capital (assoc (+ char 32) resize-window-dispatch-alist)))
195+
(capital (when (numberp char)
196+
(assoc (+ char 32) resize-window-dispatch-alist))))
196197
(cond
197198
(choice (resize-window--execute-action choice))
198199
((and capital (resize-window--allows-capitals capital))

0 commit comments

Comments
 (0)