nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 31540e3e7e7a449f09663af5d52e10b995c5a2b3
parent ae3b8579fabf893eaa771733ef4f843c68b90aee
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 10 Jan 2018 21:32:32 +0100

tweaks: remove a superfluous check, as we insert always one code

Diffstat:
Msrc/winio.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -259,10 +259,6 @@ size_t get_key_buffer_len(void) /* Add the keycodes in input to the keystroke buffer. */ void unget_input(int *input, size_t input_len) { - /* If input is empty, get out. */ - if (input_len == 0) - return; - /* If adding input would put the keystroke buffer beyond maximum capacity, * only add enough of input to put it at maximum capacity. */ if (key_buffer_len + input_len < key_buffer_len)