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:
cxl 2013-09-19 18:34:43 +00:00
parent 003fa3715e
commit 2b34b1d49f

View file

@ -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)