void get_buffer(WINDOW *win)
{
int input;
- size_t i;
/* If the keystroke buffer isn't empty, get out. */
if (key_buffer != NULL)
#ifdef NANO_WIDE
if (!ISSET(NO_UTF8)) {
+ size_t i;
buffer *clean_key_buffer = NULL;
size_t clean_key_buffer_len = 0;
* keystroke buffer. */
void unget_input(buffer *input, size_t input_len)
{
- size_t i;
buffer *clean_input = NULL;
size_t clean_input_len = 0;
#ifdef NANO_WIDE
if (!ISSET(NO_UTF8)) {
+ size_t i;
+
/* Change all invalid wide character values to -1. */
for (i = 0; i < input_len; i++) {
char key[MB_LEN_MAX];