mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-20 05:41:14 -03:00
Rename R_MIN and R_MAX to R_BEGIN/END_INPUT_FUNCTIONS
This makes the names more obvious. We also make the range half-open as is the convention.
This commit is contained in:
@@ -194,7 +194,7 @@ wchar_t input_common_readch(int timed) {
|
||||
while (1) {
|
||||
wint_t b = readb();
|
||||
|
||||
if (b >= R_NULL && b <= R_MAX) return b;
|
||||
if (b >= R_NULL && b < R_END_INPUT_FUNCTIONS) return b;
|
||||
|
||||
if (MB_CUR_MAX == 1) {
|
||||
// return (unsigned char)b; // single-byte locale, all values are legal
|
||||
|
||||
Reference in New Issue
Block a user