]> git.sur5r.net Git - c128-kasse/blobdiff - src/general.c
actually increment transaction id
[c128-kasse] / src / general.c
index d40627e00bc04c586cd84fe3abd3bb810f332d87..0e50a7208a622f2b2fa4b7943b508f5f93d3c493 100644 (file)
@@ -33,6 +33,9 @@ char *get_input() {
                        break;
                /* backspace? */
                if (c == 20) {
+                       /* If you are at the left-most position, do nothing */
+                       if (i == 0)
+                               continue;
                        output[--i] = '\0';
                        cputcxy(x+i, y, ' ');
                        gotoxy(x+i, y);