diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-04-29 19:33:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 19:33:05 +0200 |
commit | 6d4180a0d20d0b730b6e64acdac39261f52a9277 (patch) | |
tree | 2143d3d8f2cc10caee8b94d79d356eee2e762ebd /src/nvim/memline.c | |
parent | d5dc3dad80ab1aef1d5e2afcc4d44a779605da8b (diff) | |
parent | eef8de4df0247157e57f306062b1b86e01a41454 (diff) | |
download | rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.gz rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.bz2 rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.zip |
Merge pull request #18162 from dundargoc/refactor/unctustify
refactor/uncrustify
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 5c2f494450..ce6c702276 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -972,8 +972,7 @@ void ml_recover(bool checkext) if (b0p->b0_flags & B0_HAS_FENC) { int fnsize = B0_FNAME_SIZE_NOCRYPT; - for (p = b0p->b0_fname + fnsize; p > b0p->b0_fname && p[-1] != NUL; p--) { - } + for (p = b0p->b0_fname + fnsize; p > b0p->b0_fname && p[-1] != NUL; p--) {} b0_fenc = vim_strnsave(p, b0p->b0_fname + fnsize - p); } @@ -2438,8 +2437,8 @@ void ml_add_deleted_len_buf(buf_T *buf, char_u *ptr, ssize_t len) if (len == -1) { len = STRLEN(ptr); } - curbuf->deleted_bytes += len+1; - curbuf->deleted_bytes2 += len+1; + curbuf->deleted_bytes += len + 1; + curbuf->deleted_bytes2 += len + 1; if (curbuf->update_need_codepoints) { mb_utflen(ptr, len, &curbuf->deleted_codepoints, &curbuf->deleted_codeunits); @@ -2585,7 +2584,7 @@ static int ml_delete_int(buf_T *buf, linenr_T lnum, bool message) // Line should always have an NL char internally (represented as NUL), // even if 'noeol' is set. assert(line_size >= 1); - ml_add_deleted_len_buf(buf, (char_u *)dp + line_start, line_size-1); + ml_add_deleted_len_buf(buf, (char_u *)dp + line_start, line_size - 1); /* * special case: If there is only one line in the data block it becomes empty. |