Fix search_AttrMap fails to set attr map by calling wrong method

Fix inducer#13.
This commit is contained in:
Yu-Jie Lin 2011-08-05 08:52:53 +08:00
parent 267846172f
commit 36392c7af4

View File

@ -205,9 +205,9 @@ class SearchBox(urwid.Edit):
return None
else:
if self.do_search(1, self.search_start):
self.ui.search_AttrMap.set_attr("search box")
self.ui.search_AttrMap.set_attr_map({None: "search box"})
else:
self.ui.search_AttrMap.set_attr("search not found")
self.ui.search_AttrMap.set_attr_map({None: "search not found"})
return result