From deffbd37dfb6f2218958edf24a6925f2bed7d685 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 10 Jul 2015 07:33:07 +0000 Subject: [PATCH] ide: Fixed issue with navigator #1177 git-svn-id: svn://ultimatepp.org/upp/trunk@8662 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Navigator.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/uppsrc/ide/Navigator.cpp b/uppsrc/ide/Navigator.cpp index 3be431b62..848d21d9f 100644 --- a/uppsrc/ide/Navigator.cpp +++ b/uppsrc/ide/Navigator.cpp @@ -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 {