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/getchar.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/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 1284382fe8..819b3906d9 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -430,8 +430,7 @@ void flush_buffers(flush_buffers_T flush_typeahead) init_typebuf(); start_stuff(); - while (read_readbuffers(TRUE) != NUL) { - } + while (read_readbuffers(true) != NUL) {} if (flush_typeahead == FLUSH_MINIMAL) { // remove mapped characters at the start only @@ -443,8 +442,7 @@ void flush_buffers(flush_buffers_T flush_typeahead) // We have to get all characters, because we may delete the first // part of an escape sequence. In an xterm we get one char at a // time and we have to get them all. - while (inchar(typebuf.tb_buf, typebuf.tb_buflen - 1, 10L) != 0) { - } + while (inchar(typebuf.tb_buf, typebuf.tb_buflen - 1, 10L) != 0) {} } typebuf.tb_off = MAXMAPLEN; typebuf.tb_len = 0; @@ -494,8 +492,7 @@ void CancelRedo(void) redobuff = old_redobuff; old_redobuff.bh_first.b_next = NULL; start_stuff(); - while (read_readbuffers(TRUE) != NUL) { - } + while (read_readbuffers(true) != NUL) {} } } @@ -1261,9 +1258,9 @@ static int old_KeyStuffed; // whether old_char was stuffed static bool can_get_old_char(void) { - // If the old character was not stuffed and characters have been added to - // the stuff buffer, need to first get the stuffed characters instead. - return old_char != -1 && (old_KeyStuffed || stuff_empty()); + // If the old character was not stuffed and characters have been added to + // the stuff buffer, need to first get the stuffed characters instead. + return old_char != -1 && (old_KeyStuffed || stuff_empty()); } /* |