Hitting ret on switches does same as using prefix key.
This commit is contained in:
parent
3ebcb08091
commit
f01829fa9a
1 changed files with 12 additions and 10 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue