Hitting ret on switches does same as using prefix key.

This commit is contained in:
Phil Jackson 2010-09-20 19:13:00 +01:00
parent 3ebcb08091
commit f01829fa9a

View file

@ -339,6 +339,7 @@ highlighed before the description."
(let ((switch-strs (mapcar
(lambda (s)
(let ((option (nth 2 s)))
(propertize
(format " %s: %s (%s)"
(propertize (car s)
'face 'font-lock-builtin-face)
@ -347,7 +348,8 @@ highlighed before the description."
(propertize
option
'face 'font-lock-warning-face)
option))))
option))
'key-group-executor (car s))))
switches)))
(magit-key-mode-draw-header "Switches\n")
(magit-key-mode-draw-in-cols switch-strs))))