minor fix

This commit is contained in:
jbyuki 2021-06-09 11:58:25 +02:00
parent a1db340cea
commit 7ff7ca56dd

View File

@ -1717,7 +1717,7 @@ int open_line(
}
// Always move extmarks - Here we move only the line where the
// cursor is, the previous mark_adjust takes care of the lines after
int cols_added = mincol-1+less_cols_off-less_cols-new_len;
int cols_added = mincol-1+less_cols_off-less_cols;
extmark_splice(curbuf, (int)lnum-1, mincol-1 - cols_spliced,
0, less_cols_off, less_cols_off,
1, cols_added, 1 + cols_added, kExtmarkUndo);