diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 64f1b616e..16c970d6f 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -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) diff --git a/layers/+lang/c-c++/funcs.el b/layers/+lang/c-c++/funcs.el index f5c5f0d16..e8f2c7d77 100644 --- a/layers/+lang/c-c++/funcs.el +++ b/layers/+lang/c-c++/funcs.el @@ -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)))