Modify search algorithm in LibraryPanel to search match in whole block name, not only at beginning
--- a/controls/LibraryPanel.py Thu Apr 25 11:54:07 2013 +0900
+++ b/controls/LibraryPanel.py Thu Apr 25 09:37:56 2013 +0200
@@ -224,7 +224,7 @@
item = self.Tree.GetNextSibling(item)
else:
name = self.Tree.GetItemText(item)
- if name.upper().startswith(value.upper()) and item != selected:
+ if name.upper().find(value.upper()) != -1 and item != selected:
child, child_cookie = self.Tree.GetFirstChild(root)
while child.IsOk():
self.Tree.CollapseAllChildren(child)