Skip to content

Commit

Permalink
Fix spacemacs/c-c++-tags-find-references-at-point
Browse files Browse the repository at this point in the history
Rename the spacemacs/c-c++-tags-find-references-at-point and
rtags-find-references-at-point to fix the c-c++-modes key binding:
          "g," 'spacemacs/c-c++-tags-find-references-at-point
when c-c++-backend is set to 'rtags.

This changeset reverts some of the changes introduced by
the commit 445f6af.
  • Loading branch information
slitovchuk authored and sdwolfz committed Jan 14, 2019
1 parent 4d5eadd commit 990290e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.develop
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ Benner and Paweł Siudak):
- Fix issue with =c++-enable-clang-format-on-save= not taking effect when set
(thanks to Silver Chan)
- Added lsp support using either cquery or ccls backends (thanks to Cormac
Cannon and Fangrui Song)
Cannon, Sergey Litovchuk and Fangrui Song)
**** Cfengine
- Fix publish in README (thanks to Eugene Yaremenko)
- Add =ob-cfengine3= (thanks to Nick Anderson)
Expand Down
4 changes: 2 additions & 2 deletions layers/+lang/c-c++/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ and the arguments for flyckeck-clang based on a project-specific text file."
rtags-last-request-not-indexed)
(gtags-find-tag)))

(defun spacemacs/c-c++-tags-find-refs-at-point (&optional prefix)
(defun spacemacs/c-c++-tags-find-references-at-point (&optional prefix)
(interactive "P")
(if (and (not (rtags-find-refs-at-point prefix))
(if (and (not (rtags-find-references-at-point prefix))
rtags-last-request-not-indexed)
(gtags-find-rtag)))

Expand Down

0 comments on commit 990290e

Please sign in to comment.