mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-22 22:02:34 -06:00
ide: Alt+I now jumps to type definition if method is not declared #510
git-svn-id: svn://ultimatepp.org/upp/trunk@6372 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
003fa3715e
commit
2b34b1d49f
1 changed files with 5 additions and 2 deletions
|
|
@ -245,14 +245,17 @@ bool Ide::SwapSIf(const char *cref)
|
|||
q = FindItem(n, qitem);
|
||||
int count = q >= 0 ? GetCount(n, q) : 0;
|
||||
if(!cref && count < 2) {
|
||||
int typei = -1;
|
||||
for(int i = 0; i < n.GetCount(); i++) {
|
||||
if(i >= n.GetCount())
|
||||
return false;
|
||||
if(n[i].IsType())
|
||||
typei = i;
|
||||
if(i != q && n[i].name == p.current_name) {
|
||||
GotoCpp(n[i]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if(typei >= 0)
|
||||
GotoCpp(n[typei]);
|
||||
return false;
|
||||
}
|
||||
if(count < 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue