aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 3429e3df70..4078cd31ac 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -6151,11 +6151,7 @@ file_name_in_line (
// Skip over the "\" in "\ ".
++len;
}
- if (has_mbyte) {
- len += (size_t)(*mb_ptr2len)(ptr + len);
- } else {
- ++len;
- }
+ len += (size_t)(utfc_ptr2len(ptr + len));
}
/*