Skip to content

Commit

Permalink
added alternative backspace keycode
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Nov 15, 2012
1 parent ed8d35e commit 11ecb50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ input_string (WINDOW * win, int pos_y, int pos_x, int max_width, char *str)
s[0] = '\0';
pos = x = 0;
break;
case 127:
case KEY_BACKSPACE:
if (pos + x > 0) {
memmove (&s[(pos + x) - 1], &s[pos + x],
Expand Down

0 comments on commit 11ecb50

Please sign in to comment.