diff options
Diffstat (limited to 'editor.c')
| -rw-r--r-- | editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -484,7 +484,8 @@ static void editor_prompt_update(Prompt *prompt) { static void editor_prompt_clear(Prompt *prompt) { Text *text = prompt->win->text; - while (text_undo(text)); + while (text_undo(text) != (size_t)-1); + window_cursor_to(prompt->win->win, 0); } void editor_prompt_hide(Editor *ed) { |
