From b3c46581362474f59953683bb89cb5b6d8ffecac Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 22 Dec 2011 19:42:26 +0000 Subject: [PATCH] .ide: TheIDE: Selecting items of navigator bar for layout files as text (rm #213) git-svn-id: svn://ultimatepp.org/upp/trunk@4338 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Assist.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/Assist.cpp b/uppsrc/ide/Assist.cpp index 903a7bc43..b883c00c6 100644 --- a/uppsrc/ide/Assist.cpp +++ b/uppsrc/ide/Assist.cpp @@ -1193,8 +1193,15 @@ void Ide::JumpToDefinition(const Array& n, int q) AddHistory(); EditFile(path); LayDesigner *l = dynamic_cast(~designer); - if(l && pos.name.StartsWith("With")) - l->FindLayout(pos.name.Mid(4)); + if(l) { + if(pos.name.StartsWith("With")) + l->FindLayout(pos.name.Mid(4)); + } + else { + editor.SetCursor(editor.GetPos(pos.line - 1)); + editor.TopCursor(4); + editor.SetFocus(); + } AddHistory(); } else