summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-24 15:04:48 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-24 15:04:48 +0100
commit135059724f140ceac889c9f8136bd1bf5c41d49d (patch)
tree64a9fc867701c8cdd596130cdab2d92129920bd7 /src/fold.c
parent4b9e91f0ba02192e4592a5c4a9bdcdd6e9efeb5e (diff)
downloadvim-git-135059724f140ceac889c9f8136bd1bf5c41d49d.tar.gz
patch 8.1.0805: too many #ifdefsv8.1.0805
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/fold.c b/src/fold.c
index eba32ece3..7446f7c63 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -1057,11 +1057,9 @@ foldAdjustVisual(void)
end->col = (colnr_T)STRLEN(ptr);
if (end->col > 0 && *p_sel == 'o')
--end->col;
-#ifdef FEAT_MBYTE
/* prevent cursor from moving on the trail byte */
if (has_mbyte)
mb_adjust_cursor();
-#endif
}
}
@@ -1946,7 +1944,6 @@ get_foldtext(
* replace a TAB with a space. */
for (p = text; *p != NUL; ++p)
{
-# ifdef FEAT_MBYTE
int len;
if (has_mbyte && (len = (*mb_ptr2len)(p)) > 1)
@@ -1956,7 +1953,6 @@ get_foldtext(
p += len - 1;
}
else
-# endif
if (*p == TAB)
*p = ' ';
else if (ptr2cells(p) > 1)