Skip to content

Commit

Permalink
set cursor coord when not updating prompt contents
Browse files Browse the repository at this point in the history
Sometimes offset can be -1, while it is also true that screen contents
have changed.  Example keystrokes: f<Down>, which enters the file-finder,
moves the tig cursor, and leaves the terminal cursor out of place.
  • Loading branch information
rolandwalker committed Jul 6, 2017
1 parent 4c6c5d8 commit bd17792
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd17792

Please sign in to comment.