pazz/alot — Issue #139: refineprompt does cause crash
Author: bjoernb
Created: 2011-11-28 07:27:20+00:00
State: open

Hi,

refineprompt is defined twice: "O" and "|" are defined in alot.rc

alot -d debug -l alot.log

Traceback (most recent call last):
File "/usr/local/bin/alot", line 20, in
main()
File "/usr/local/lib/python2.7/dist-packages/alot/init.py", line 102, in main
args.colours,
File "/usr/local/lib/python2.7/dist-packages/alot/ui.py", line 102, in __init__
self.mainloop.run()
File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py", line 229, in run_wrapper
return fn()
File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 307, in _run
self.event_loop.run()
File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 1159, in wrapper
rval = f(*args,**kargs)
File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 358, in _update
self.process_input(keys)
File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 447, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/usr/local/lib/python2.7/dist-packages/alot/ui.py", line 52, in keypress
self.ui.apply_command(cmd)
File "/usr/local/lib/python2.7/dist-packages/alot/ui.py", line 434, in apply_command
cmd.apply(self)
File "/usr/local/lib/python2.7/dist-packages/alot/commands/search.py", line 100, in apply
ui.commandprompt('refine ' + oldquery)
AttributeError: 'UI' object has no attribute 'commandprompt'