aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorG-flat <63449095+G-flat@users.noreply.github.com>2020-10-05 15:15:10 +0800
committerGitHub <noreply@github.com>2020-10-05 15:15:10 +0800
commitb0769729c805ef33d47f383fd8b2ab18da5fa33c (patch)
treeee66236c5172c1b65b8a6415f756a78d6db29ac5 /src/nvim/screen.c
parent1d08dfab5b057b51aed98450afd3ad1c888870ff (diff)
parentf7aeac7263c792e1503f9169abed20b6f5b9da99 (diff)
downloadrneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.gz
rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.bz2
rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.zip
Merge pull request #1 from neovim/master
rebase
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index f3fdafcc70..3503348049 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2822,6 +2822,16 @@ win_line (
n_extra = wp->w_p_rl ? (col + 1) : (grid->Columns - col);
}
+ if (draw_state == WL_LINE
+ && foldinfo.fi_level != 0
+ && foldinfo.fi_lines > 0
+ && col >= grid->Columns
+ && n_extra != 0
+ && row == startrow) {
+ // Truncate the folding.
+ n_extra = 0;
+ }
+
if (draw_state == WL_LINE && (area_highlighting || has_spell)) {
// handle Visual or match highlighting in this line
if (vcol == fromcol