https://bugzilla.novell.com/show_bug.cgi?id=714551
https://bugzilla.novell.com/show_bug.cgi?id=714551#c0
Summary: Vim's ":tag" command should search corresponding header file first. Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nn.dm55@gmail.com QAContact: qa@suse.de Found By: --- Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
In a C++ project with many variables with the same name, searching for the definition of a variable mentioned in a ".cpp" file using Ctrl-] gives me the definition of an unrelated variable with the same name. The ":tag" command should prefer the definition in the corresponding header file to any other definitions to make finding the correct definition easier.
Reproducible: Always
Steps to Reproduce: 1. Download SuperTuxKart 2. Open src/karts/kart_model.cpp in Vim 3. Type "/::attachModel" and press Enter 4. Type "/else" and press Enter 5. Type "/m_mesh" and press Enter. 6. Hold Ctrl and press ], then release both keys Actual Results: You end up looking at the following line in src/graphics/shadow.hpp instead of src/karts/kart_model.hpp:
scene::IMesh *m_mesh;
Expected Results: I expected Vim to show me these line from src/karts/kart_model.hpp:
scene::IAnimatedMesh *m_mesh;
This bug happens even without having a .vimrc file. I am using openSUSE 11.3 64-bit.
https://bugzilla.novell.com/show_bug.cgi?id=714551
https://bugzilla.novell.com/show_bug.cgi?id=714551#c
zj jia zjjia@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |hvogel@suse.com |ovo.novell.com |
https://bugzilla.novell.com/show_bug.cgi?id=714551
https://bugzilla.novell.com/show_bug.cgi?id=714551#c
Hendrik Vogelsang hvogel@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hvogel@suse.com |idonmez@suse.com Severity|Normal |Major
http://bugzilla.novell.com/show_bug.cgi?id=714551 http://bugzilla.novell.com/show_bug.cgi?id=714551#c1
Ismail Donmez idonmez@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |UPSTREAM
--- Comment #1 from Ismail Donmez idonmez@suse.com --- I can reproduce this but I am not sure if this is a vim bug or a ctags one. Please report upstream instead.