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:
klugier 2018-05-06 21:01:13 +00:00
commit 6118a9bd99
8 changed files with 137 additions and 61 deletions

View file

@ -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;