LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Variable not getting added to 'tag stack'; functions work perfectly (https://www.linuxquestions.org/questions/linux-software-2/variable-not-getting-added-to-tag-stack%3B-functions-work-perfectly-892591/)

vkaushal21 07-19-2011 04:20 PM

Variable not getting added to 'tag stack'; functions work perfectly
 
While using ctags in vim, my tags stack is behaving strangely.

Case 1: Use 'ctrl+]' to access a function (say foo) and then 'ctrl+t'
:::::::::::::::::::::::: Returns perfectly.
Case 2: Use 'ctrl+]' to access a variable (say 'var') and then do 'ctrl+t'
:::::::::::::::::::::::: Error 'at bottom of tag stack'.
Case 3: Use 'ctrl+]' to access a function (say foo) and then 'ctrl + ]' to access a variable (say 'var') and then do 'ctrl+t'
:::::::::::::::::::::::: Instead of returning to var, it returns to foo

It seems like whenever I do 'ctrl+]' to variable, it is not added to tag stack, but functions are added to tag stack.

Any recommended solutions?


All times are GMT -5. The time now is 06:14 PM.