mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Fixed issue with navigator #1177
git-svn-id: svn://ultimatepp.org/upp/trunk@8662 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cad4b92488
commit
deffbd37df
1 changed files with 6 additions and 4 deletions
|
|
@ -121,7 +121,7 @@ void Navigator::SyncCursor()
|
|||
|
||||
void Navigator::SyncLines()
|
||||
{
|
||||
if(IsNull(theide->editfile))
|
||||
if(IsNull(theide->editfile) || navigating)
|
||||
return;
|
||||
int ln = GetCurrentLine() + 1;
|
||||
int fi = GetSourceFileIndex(theide->editfile);
|
||||
|
|
@ -233,9 +233,11 @@ void Navigator::Navigate()
|
|||
const NavItem& m = *litem[ii];
|
||||
if(m.kind == KIND_LINE || IsNull(search)) {
|
||||
theide->GotoPos(Null, m.line);
|
||||
search.Clear();
|
||||
Search();
|
||||
navigating = false;
|
||||
if(m.kind == KIND_LINE) { // Go to line - restore file view
|
||||
search.Clear();
|
||||
Search();
|
||||
navigating = false;
|
||||
}
|
||||
SyncCursor();
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue