Skip to content

Commit

Permalink
Relax move menu check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhdo committed Apr 23, 2015
1 parent 1bc93c9 commit 54dcf29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions srefactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -1437,9 +1437,7 @@ tag and OPTIONS is a list of possible choices for each menu item.
(defun srefactor--menu-add-move-p ()
"Check whether to add move menu."
(and (semantic-current-tag)
(not (region-active-p))
(semantic-equivalent-tag-p (srefactor--tag-at-point)
(semantic-current-tag))))
(not (region-active-p))))

(defun srefactor--tag-at-point ()
"Retrieve current variable tag at piont."
Expand Down

0 comments on commit 54dcf29

Please sign in to comment.