mirror of git://git.sv.gnu.org/nano.git
tweaks: remove two superfluous assignments
The digit counter will be reset to zero the next time when <Esc> is pressed, and the byte holder gets re-initialized when the next first digit is pressed. And the escape counter is reset to zero after returning from a result-giving call of get_byte_kbinput().
This commit is contained in:
parent
b41405233f
commit
e4fa0b54a2
|
@ -1346,12 +1346,6 @@ int get_byte_kbinput(int kbinput)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we have a result, reset the counter and the byte holder. */
|
|
||||||
if (retval != ERR) {
|
|
||||||
digit_count = 0;
|
|
||||||
byte = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue