mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 14:56:22 +00:00
Added back code to output single char rather than whole string
This commit is contained in:
@@ -195,14 +195,13 @@ inp_get_char(char *input, int *size)
|
||||
|
||||
// otherwise just append
|
||||
} else {
|
||||
char bytes[MB_CUR_MAX];
|
||||
char bytes[MB_CUR_MAX+1];
|
||||
size_t utf_len = wcrtomb(bytes, ch, NULL);
|
||||
for (i = 0 ; i < utf_len; i++) {
|
||||
input[(*size)++] = bytes[i];
|
||||
}
|
||||
input[*size] = '\0';
|
||||
_inp_clear_no_pad();
|
||||
wprintw(inp_win, input);
|
||||
bytes[utf_len] = '\0';
|
||||
wprintw(inp_win, bytes);
|
||||
|
||||
display_size++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user