mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-14 06:12:47 -06:00
ide: Navigator now shows implementation first
git-svn-id: svn://ultimatepp.org/upp/trunk@8549 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
46f973cb9c
commit
74ea2a00b2
1 changed files with 6 additions and 6 deletions
|
|
@ -197,10 +197,10 @@ void Navigator::GoToNavLine()
|
|||
|
||||
bool Navigator::NavLine::operator<(const NavLine& b) const
|
||||
{
|
||||
String p1 = GetSourceFilePath(file);
|
||||
String p1 = GetSourceFilePath(file); //
|
||||
String p2 = GetSourceFilePath(b.file);
|
||||
return CombineCompare(!impl, !b.impl)
|
||||
(GetFileExt(p1), GetFileExt(p2)) // .h > .c
|
||||
return CombineCompare/*(!impl, !b.impl)*/
|
||||
(GetFileExt(p2), GetFileExt(p1)) // .h > .c
|
||||
(GetFileName(p1), GetFileName(p2))
|
||||
(p1, p2)
|
||||
(line, b.line) < 0;
|
||||
|
|
@ -240,9 +240,9 @@ void Navigator::Navigate()
|
|||
else {
|
||||
Vector<NavLine> l = GetNavLines(m);
|
||||
int q = l.GetCount() - 1;
|
||||
for(int i = q; i >= 0; i--)
|
||||
if(GetSourceFilePath(l[i].file) == theide->editfile && l[i].line == ln) {
|
||||
q = (i + l.GetCount() - 1) % l.GetCount();
|
||||
for(int i = 0; i < l.GetCount(); i++)
|
||||
if(GetSourceFilePath(l[i].file) == NormalizeSourcePath(theide->editfile) && l[i].line == ln) {
|
||||
q = (i + l.GetCount() + 1) % l.GetCount();
|
||||
break;
|
||||
}
|
||||
if(q >= 0 && q < l.GetCount())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue