Fix get_count: ^H should go left instead of backspacing a count

This commit is contained in:
Pasi Kallinen
2016-01-12 08:20:13 +02:00
parent 6dd6584e21
commit 99ee354637

View File

@@ -3893,7 +3893,7 @@ long *count;
cnt = 0;
else if (maxcount > 0 && cnt > maxcount)
cnt = maxcount;
} else if (key == '\b' || key == STANDBY_erase_char) {
} else if (cnt && (key == '\b' || key == STANDBY_erase_char)) {
cnt = cnt / 10;
backspaced = TRUE;
} else if (key == '\033') {