Rename utf8_ord() to utf8_decode()
Purely for readability and in preparation for the counterpart utf8_encode(). Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
30f411257a
commit
431e4a00e7
@@ -266,7 +266,7 @@ int keys_wgetch(WINDOW *win)
|
||||
buf[0] = ch;
|
||||
for (i = 1; i < UTF8_LENGTH(buf[0]); i++)
|
||||
buf[i] = wgetch(win);
|
||||
return utf8_ord(buf) + KEY_MAX;
|
||||
return utf8_decode(buf) + KEY_MAX;
|
||||
}
|
||||
|
||||
void keys_wait_for_any_key(WINDOW *win)
|
||||
|
||||
Reference in New Issue
Block a user