Skip to content

Commit

Permalink
[Fix #13] Check if evil exists before checking it is active
Browse files Browse the repository at this point in the history
Otherwise an error occurs and Srefactor menu cannot be created.
  • Loading branch information
Tu Do authored and Tu Do committed Jul 26, 2015
1 parent c756b9d commit 4adc464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srefactor-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ when the corresponding MENU-ITEM is selected."
100)
(/ (* (frame-height) 10)
100))
(when evil-mode
(when (and (fboundp 'evil-mode)
evil-mode)
(evil-emacs-state)))
(error (srefactor-ui--clean-up-menu-window)
(message "Error when creating menu."))))
Expand Down

0 comments on commit 4adc464

Please sign in to comment.