comparison frontends/src/primitivus/primitivus @ 1406:d3e02159f26c

primitivus: fixes :search command
author souliane <souliane@mailoo.org>
date Thu, 09 Apr 2015 11:24:25 +0200
parents 069ad98b360d
children 77f07ea90420
comparison
equal deleted inserted replaced
1405:ff86abc12206 1406:d3e02159f26c
145 if isinstance(widget, quick_chat.QuickChat): 145 if isinstance(widget, quick_chat.QuickChat):
146 pattern = " ".join(args) 146 pattern = " ".join(args)
147 if not pattern: 147 if not pattern:
148 self.host.notif_bar.addMessage(D_("Please specify the globbing pattern to search for")) 148 self.host.notif_bar.addMessage(D_("Please specify the globbing pattern to search for"))
149 widget.clearHistory() 149 widget.clearHistory()
150 widget.printInfo(D_("Results for searching the globbing pattern: %s") % pattern, timestamp=0) 150 widget.printInfo(D_("Results for searching the globbing pattern: %s") % pattern, extra={'timestamp': 0})
151 widget.historyPrint(size=C.HISTORY_LIMIT_NONE, search=pattern, profile=widget.profile) 151 widget.historyPrint(size=C.HISTORY_LIMIT_NONE, search=pattern, profile=widget.profile)
152 widget.printInfo(D_("Type ':history <lines>' to reset the chat history")) 152 widget.printInfo(D_("Type ':history <lines>' to reset the chat history"))
153 else: 153 else:
154 return 154 return
155 self.set_edit_text('') 155 self.set_edit_text('')