From 486076a0e1ee3c7bb230e0f95a21607fadea96d4 Mon Sep 17 00:00:00 2001 From: bfredl Date: Fri, 11 Oct 2024 20:25:35 +0200 Subject: fix(build): remove USE_FNAME_CASE, redundant with CASE_INSENSITIVE_FILENAME It stands to reason, you need to "fix" case-insensitive filenames if-and-only-if you have case-insensitive filenames. --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4a87cebfa7..ce47705aa6 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -2985,7 +2985,7 @@ int setfname(buf_T *buf, char *ffname_arg, char *sfname_arg, bool message) close_buffer(NULL, obuf, DOBUF_WIPE, false, false); } sfname = xstrdup(sfname); -#ifdef USE_FNAME_CASE +#ifdef CASE_INSENSITIVE_FILENAME path_fix_case(sfname); // set correct case for short file name #endif if (buf->b_sfname != buf->b_ffname) { -- cgit