Skip to content

Commit

Permalink
Hitting ret on actions does same as using prefix key.
Browse files Browse the repository at this point in the history
  • Loading branch information
philjackson committed Sep 20, 2010
1 parent f01829f commit 6be8e9e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions magit-key-mode.el
Expand Up @@ -359,14 +359,16 @@ highlighed before the description."
(when actions
(let ((action-strs (mapcar
(lambda (a)
(format
" %s: %s"
(propertize (car a)
'face 'font-lock-builtin-face)
(nth 1 a)))
actions)))
(magit-key-mode-draw-header "Actions\n")
(magit-key-mode-draw-in-cols action-strs))))
(propertize
(format
" %s: %s"
(propertize (car a)
'face 'font-lock-builtin-face)
(nth 1 a))
'key-group-executor (car a)))
actions)))
(magit-key-mode-draw-header "Actions\n")
(magit-key-mode-draw-in-cols action-strs))))

(defun magit-key-mode-draw-in-cols (strings &optional one-col-each)
"Given a list of strings, print in columns (using `insert'). If
Expand Down

0 comments on commit 6be8e9e

Please sign in to comment.