summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 12d82dcb..28903894 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -87,7 +87,7 @@ class PromptCommand(Command):
@inlineCallbacks
def apply(self, ui):
logging.info('open command shell')
- mode = ui.current_buffer.typename
+ mode = ui.current_buffer.modename
cmdline = yield ui.prompt(prefix=':',
text=self.startwith,
completer=CommandLineCompleter(ui.dbman,
@@ -104,7 +104,7 @@ class PromptCommand(Command):
# save into prompt history
ui.commandprompthistory.append(cmdline)
- mode = ui.current_buffer.typename
+ mode = ui.current_buffer.modename
try:
cmd = commandfactory(cmdline, mode)
ui.apply_command(cmd)