patch 8.1.0810: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 4.
diff --git a/src/window.c b/src/window.c
index 792288f..58a21e8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6180,12 +6180,9 @@
*/
while (ptr > line)
{
-#ifdef FEAT_MBYTE
if (has_mbyte && (len = (*mb_head_off)(line, ptr - 1)) > 0)
ptr -= len + 1;
- else
-#endif
- if (vim_isfilec(ptr[-1])
+ else if (vim_isfilec(ptr[-1])
|| ((options & FNAME_HYP) && path_is_url(ptr - 1)))
--ptr;
else
@@ -6214,11 +6211,9 @@
if (ptr[len] == '\\')
/* Skip over the "\" in "\ ". */
++len;
-#ifdef FEAT_MBYTE
if (has_mbyte)
len += (*mb_ptr2len)(ptr + len);
else
-#endif
++len;
}
@@ -6829,7 +6824,7 @@
m->match.regprog = regprog;
m->match.rmm_ic = FALSE;
m->match.rmm_maxcol = 0;
-# if defined(FEAT_CONCEAL) && defined(FEAT_MBYTE)
+# if defined(FEAT_CONCEAL)
m->conceal_char = 0;
if (conceal_char != NULL)
m->conceal_char = (*mb_ptr2char)(conceal_char);