mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
IDE: Topic editor now allows to search in topic collection. #1872
git-svn-id: svn://ultimatepp.org/upp/trunk@11929 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fae8798fed
commit
6118a9bd99
8 changed files with 137 additions and 61 deletions
|
|
@ -79,14 +79,14 @@ void TopicEditor::FindBrokenRef()
|
|||
}
|
||||
}
|
||||
}
|
||||
if(!topic.IsCursor())
|
||||
if(!topics_list.IsCursor())
|
||||
break;
|
||||
c = topic.GetCursor() + 1;
|
||||
if(c >= topic.GetCount()) {
|
||||
c = topics_list.GetCursor() + 1;
|
||||
if(c >= topics_list.GetCount()) {
|
||||
PromptOK("No more invalid references.");
|
||||
break;
|
||||
}
|
||||
topic.SetCursor(c);
|
||||
topics_list.SetCursor(c);
|
||||
if(!IsNull(topicpath))
|
||||
editor.Move(0);
|
||||
}
|
||||
|
|
@ -355,7 +355,7 @@ void TopicEditor::InsertNew(const String& coderef)
|
|||
|
||||
void TopicEditor::GoTo(const String& _topic, const String& link, const String& create, bool before)
|
||||
{
|
||||
if(topic.FindSetCursor(_topic) && !IsNull(link)) {
|
||||
if(topics_list.FindSetCursor(_topic) && !IsNull(link)) {
|
||||
editor.Select(editor.GetLength(), 0);
|
||||
if(!editor.GotoLabel(link)) {
|
||||
String l = link;
|
||||
|
|
|
|||
Loading…
Reference in a new issue