Skip to content

Commit

Permalink
handle cancellation correctly during confirmation question
Browse files Browse the repository at this point in the history
  • Loading branch information
kermorgant committed Aug 5, 2018
1 parent 30172c9 commit 3660fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
(let ((use-dialog-box nil)
(type (if type (intern type) value-type)))
(cl-case type
(confirm (y-or-n-p label))
(confirm (if (y-or-n-p label) t
(error "Action cancelled")))
(file (read-file-name label nil default))
(text (read-string label default))
(choice (completing-read label
Expand Down

0 comments on commit 3660fc7

Please sign in to comment.