213_uppsrc.diff
uppsrc/ide/Assist.cpp 2011-12-11 06:16:52 +0400 | ||
---|---|---|
1193 | 1193 |
AddHistory(); |
1194 | 1194 |
EditFile(path); |
1195 | 1195 |
LayDesigner *l = dynamic_cast<LayDesigner *>(~designer); |
1196 |
if(l && pos.name.StartsWith("With")) |
|
1197 |
l->FindLayout(pos.name.Mid(4)); |
|
1196 |
if(l) { |
|
1197 |
if(pos.name.StartsWith("With")) |
|
1198 |
l->FindLayout(pos.name.Mid(4)); |
|
1199 |
} |
|
1200 |
else { |
|
1201 |
editor.SetCursor(editor.GetPos(pos.line - 1)); |
|
1202 |
editor.TopCursor(4); |
|
1203 |
editor.SetFocus(); |
|
1204 |
} |
|
1198 | 1205 |
AddHistory(); |
1199 | 1206 |
} |
1200 | 1207 |
else |