Skip to content

Commit

Permalink
* helm-buffers.el: Show action in buffer action properly (#674).
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Oct 22, 2014
1 parent 3637af1 commit a4c5758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helm-buffers.el
Expand Up @@ -180,7 +180,9 @@ Only buffer names are fuzzy matched when this is enabled,
(defvar helm-source-buffer-not-found
(helm-build-dummy-source
"Create buffer"
:action (lambda (candidate)
:action (helm-make-actions
"Create buffer (C-u choose mode)"
(lambda (candidate)
(let ((mjm (and helm-current-prefix-arg
(intern-soft (helm-comp-read
"Major-mode: "
Expand All @@ -189,7 +191,7 @@ Only buffer names are fuzzy matched when this is enabled,
(if mjm
(with-current-buffer buffer (funcall mjm))
(set-buffer-major-mode buffer))
(helm-switch-to-buffer buffer)))))
(helm-switch-to-buffer buffer))))))

(defvar ido-temp-list)
(defvar ido-ignored-list)
Expand Down

0 comments on commit a4c5758

Please sign in to comment.