aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-07-29 02:40:25 +0200
committerckelsel <ckelsel@hotmail.com>2017-08-14 07:45:49 +0800
commit5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a (patch)
treea4770dc928e5061e8d713e22b2948c8e229349f9 /src/nvim/screen.c
parent9b4cbd5cdcc807a69da649b96f52e8a3d56c1ff4 (diff)
downloadrneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.tar.gz
rneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.tar.bz2
rneovim-5ed2ab6d5327ed7c54edc9fa5eb1cfa447edbf2a.zip
vim-patch:8.0.0524
Problem: Folds are messed up when 'encodin' is "utf-8". Solution: Also set the fold character when it's not multi-byte. https://github.com/vim/vim/commit/8da1e6cedf839902e15987a98733ebd31b5f1b81
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index c302ac695e..dd958eec80 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -1927,6 +1927,7 @@ static void fold_line(win_T *wp, long fold_count, foldinfo_T *foldinfo, linenr_T
ScreenLines[off + col] = 0x80; // avoid storing zero
} else {
ScreenLinesUC[off + col] = 0;
+ ScreenLines[off + col] = fill_fold;
}
col++;
} else {