aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.h
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-01-23 00:43:04 +0100
committerGitHub <noreply@github.com>2023-01-23 07:43:04 +0800
commit323ea17a19911f88c15b36e2251657edfa09b30b (patch)
treec5887c40d2eeef2d9bcdc874df227546d862bef3 /src/nvim/fold.h
parent0f633ff494b5b39b5ca410e75ea3357c79657bcd (diff)
downloadrneovim-323ea17a19911f88c15b36e2251657edfa09b30b.tar.gz
rneovim-323ea17a19911f88c15b36e2251657edfa09b30b.tar.bz2
rneovim-323ea17a19911f88c15b36e2251657edfa09b30b.zip
fix(extmarks): problems with folded virtual lines (#21930)
Problem: When a folded line has virtual lines attached, the following problems occur: - The virtual lines are drawn empty. - The 'foldtext' line is drawn empty. - The cursor is drawn incorrectly. Solution: Check whether virtual lines belong to a folded line. Fix #17027 Fix #19557 Fix #21837 Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/fold.h')
-rw-r--r--src/nvim/fold.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/fold.h b/src/nvim/fold.h
index 9c3a34ab31..ac1e8c9419 100644
--- a/src/nvim/fold.h
+++ b/src/nvim/fold.h
@@ -20,8 +20,6 @@ typedef struct foldinfo {
linenr_T fi_lines;
} foldinfo_T;
-#define FOLDINFO_INIT { 0, 0, 0, 0 }
-
EXTERN int disable_fold_update INIT(= 0);
#ifdef INCLUDE_GENERATED_DECLARATIONS