folds: pass column on fold creation

useful if we want to have inline folds later and/or let users create
folds that remember their start/end columns.
This commit is contained in:
Matthieu Coudron
2020-09-28 01:18:37 +02:00
parent c5ceefca79
commit 12fdb114d1
5 changed files with 142 additions and 110 deletions

View File

@@ -119,7 +119,7 @@ static char opchars[][3] =
{ 'r', NUL, OPF_CHANGE }, // OP_REPLACE
{ 'I', NUL, OPF_CHANGE }, // OP_INSERT
{ 'A', NUL, OPF_CHANGE }, // OP_APPEND
{ 'z', 'f', OPF_LINES }, // OP_FOLD
{ 'z', 'f', 0 }, // OP_FOLD
{ 'z', 'o', OPF_LINES }, // OP_FOLDOPEN
{ 'z', 'O', OPF_LINES }, // OP_FOLDOPENREC
{ 'z', 'c', OPF_LINES }, // OP_FOLDCLOSE