Add command history too

This commit is contained in:
Anthony Sottile
2019-11-29 18:18:32 -08:00
parent 1a4ce27869
commit ace629bc17

View File

@@ -1015,7 +1015,7 @@ def _edit(screen: Screen) -> EditResult:
elif key.keyname == b'^C':
screen.file.current_position(screen.status)
elif key.keyname == b'^[': # escape
response = screen.status.prompt(screen, '')
response = screen.status.prompt(screen, '', history='command')
if response == ':q':
return EditResult.EXIT
elif response == ':w':