Skip to content

Commit

Permalink
Use default in semantic-or-imenu.
Browse files Browse the repository at this point in the history
* helm-semantic.el (helm-semantic-or-imenu): Only when using imenu.
  • Loading branch information
Thierry Volpiatto committed May 30, 2016
1 parent 4a899b1 commit 11fd36f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm-semantic.el
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ Fill in the symbol at point by default."
'helm-source-imenu))
(imenu-p (eq source 'helm-source-imenu))
(imenu-auto-rescan imenu-p)
(str (thing-at-point 'symbol))
(helm-execute-action-at-once-if-one
(and imenu-p
helm-imenu-execute-action-at-once-if-one))
Expand All @@ -207,9 +208,8 @@ Fill in the symbol at point by default."
(format "\\_<%s\\_>" (car (semantic-current-tag))))))
(helm :sources source
:candidate-number-limit 9999
:preselect (if (or arg imenu-p)
(thing-at-point 'symbol)
tag)
:default (and imenu-p (list (concat "\\_<" str "\\_>") str))
:preselect (if (or arg imenu-p) str tag)
:buffer "*helm semantic/imenu*")))

(provide 'helm-semantic)
Expand Down

0 comments on commit 11fd36f

Please sign in to comment.