summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-29 20:38:59 +0200
committerBram Moolenaar <Bram@vim.org>2017-03-29 20:38:59 +0200
commit8da1e6cedf839902e15987a98733ebd31b5f1b81 (patch)
tree39e31f70f01f9a64d478f99eb7f1ebf9ba6ab1e7 /src/screen.c
parentbf3d58073f7b34b2d65d1d08a728d1164e03cceb (diff)
downloadvim-8da1e6cedf839902e15987a98733ebd31b5f1b81.zip
patch 8.0.0524: folds messed up
Problem: Folds are messed up when 'encodin' is "utf-8". Solution: Also set the fold character when it's not multi-byte.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index ceb30e337..fbfded1a2 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2700,7 +2700,10 @@ fold_line(
ScreenLines[off + col] = 0x80; /* avoid storing zero */
}
else
+ {
ScreenLinesUC[off + col] = 0;
+ ScreenLines[off + col] = fill_fold;
+ }
col++;
}
else