mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix: pass value instead of pointer to isalpha (#21898)
This commit is contained in:
@@ -3343,7 +3343,7 @@ void maketitle(void)
|
|||||||
(SPACE_FOR_DIR - (size_t)(buf_p - buf)), true);
|
(SPACE_FOR_DIR - (size_t)(buf_p - buf)), true);
|
||||||
#ifdef BACKSLASH_IN_FILENAME
|
#ifdef BACKSLASH_IN_FILENAME
|
||||||
// Avoid "c:/name" to be reduced to "c".
|
// Avoid "c:/name" to be reduced to "c".
|
||||||
if (isalpha((uint8_t)buf_p) && *(buf_p + 1) == ':') {
|
if (isalpha((uint8_t)(*buf_p)) && *(buf_p + 1) == ':') {
|
||||||
buf_p += 2;
|
buf_p += 2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user