From bd17792ea237fc2cbf3520e0ba15b06ff8ce1a2c Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Thu, 6 Jul 2017 12:55:55 -0400 Subject: [PATCH] set cursor coord when not updating prompt contents Sometimes offset can be -1, while it is also true that screen contents have changed. Example keystrokes: f, which enters the file-finder, moves the tig cursor, and leaves the terminal cursor out of place. --- src/prompt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prompt.c b/src/prompt.c index 40fc3db4f..3ce89b4f5 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -49,6 +49,8 @@ prompt_input(const char *prompt, struct input *input) last_buf_length = buf_length; if (offset >= 0) update_status("%s%.*s", prompt, pos, input->buf); + else + wmove(status_win, 0, buf_length); if (get_input(offset, &key) == OK) { int len = strlen(key.data.bytes);