diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2014-03-21 14:14:18 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2014-04-02 15:16:43 +0100 |
commit | a8e95017c71cc8007bef9dd7ddbe6728a5fd924d (patch) | |
tree | 5622df2ba3eda5c31b0953979b219de24f1707e6 /alot/ui.py | |
parent | 04f7c24d658770a4f64096e0a6a82325bcb4b65a (diff) |
properly interpret initial_command as cmdsequence
This ensures the default initial command as given by the
`initial_command` config option will be interpreted as
command*line* as expected, and not as single command.
As a result, one can now use e.g.
initial_command = search A ; search B
issue: #698
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,11 +24,11 @@ class UI(object): responsible for opening, closing and focussing buffers. """ - def __init__(self, dbman, initialcmd): + def __init__(self, dbman, initialcmdline): """ :param dbman: :class:`~alot.db.DBManager` - :param initialcmd: commandline applied after setting up interface - :type initialcmd: str + :param initialcmdline: commandline applied after setting up interface + :type initialcmdline: str :param colourmode: determines which theme to chose :type colourmode: int in [1,16,256] """ @@ -81,7 +81,7 @@ class UI(object): self.mainloop.screen.set_terminal_properties(colors=colourmode) logging.debug('fire first command') - self.apply_command(initialcmd) + self.apply_commandline(initialcmdline) # start urwids mainloop self.mainloop.run() |