diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-15 12:35:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 12:35:06 +0200 |
commit | e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6 (patch) | |
tree | a05cf2f0a352b6bf3db38e5c7a57842615cc4a48 /src/nvim/memline.c | |
parent | 4503cb6b642e0b1ba8157154af6a220387e607f0 (diff) | |
download | rneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.tar.gz rneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.tar.bz2 rneovim-e63e5d1dbd3dd4711efa0ecf9e844ff308b370a6.zip |
docs: typo fixes (#17859)
Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com>
Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com>
Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com>
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: rwxd <rwxd@pm.me>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 5f6e1ea273..55480ab384 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -3944,10 +3944,8 @@ static void ml_updatechunk(buf_T *buf, linenr_T line, long len, int updtype) } else if (buf->b_ml.ml_chunksize[curix].mlcs_numlines >= MLCS_MINL && curix == buf->b_ml.ml_usedchunks - 1 && buf->b_ml.ml_line_count - line <= 1) { - /* - * We are in the last chunk and it is cheap to crate a new one - * after this. Do it now to avoid the loop above later on - */ + // We are in the last chunk and it is cheap to create a new one + // after this. Do it now to avoid the loop above later on curchnk = buf->b_ml.ml_chunksize + curix + 1; buf->b_ml.ml_usedchunks++; if (line == buf->b_ml.ml_line_count) { |