diff options
author | James Booth <boothj5@gmail.com> | 2012-07-08 02:59:19 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-07-08 02:59:19 +0100 |
commit | 157a864ffe1b4c95cc9b93fdfb9abf132c8d4a88 (patch) | |
tree | 646d00870c555f806a463df534774e21355ec2f1 | |
parent | 82d7a1d2736e3c1f71c92d1eba9e8a0b4b56f3de (diff) | |
download | profani-tty-157a864ffe1b4c95cc9b93fdfb9abf132c8d4a88.tar.gz |
Left arrow
-rw-r--r-- | input_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input_win.c b/input_win.c index 6fe7a3f8..0d34e894 100644 --- a/input_win.c +++ b/input_win.c @@ -223,11 +223,11 @@ static int _handle_edit(const int ch, char *input, int *size) return 1; case KEY_LEFT: - if (inp_x > 1) + if (inp_x > 0) wmove(inp_win, inp_y, inp_x-1); // current position off screen to left - if (inp_x < pad_start) { + if (inp_x - 1 < pad_start) { pad_start--; prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1); } |