neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 363d153bb94a965ff811d8c7514047264b37d61d
parent 00a976129b603b60f1e309ee7484cb0f4b5a9792
Author: dundargoc <33953936+dundargoc@users.noreply.github.com>
Date:   Thu, 19 Jan 2023 11:48:49 +0100

fix: pass value instead of pointer to isalpha (#21898)


Diffstat:
Msrc/nvim/buffer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c @@ -3343,7 +3343,7 @@ void maketitle(void) (SPACE_FOR_DIR - (size_t)(buf_p - buf)), true); #ifdef BACKSLASH_IN_FILENAME // 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; } #endif