refactor: fix clint warnings (#17682)

This commit is contained in:
dundargoc
2022-03-13 15:11:17 +01:00
committed by GitHub
parent 4ede2ea4b2
commit 4ba12b3dda
20 changed files with 160 additions and 240 deletions

View File

@@ -219,7 +219,7 @@ void nvim_feedkeys(String keys, String mode, Boolean escape_ks)
bool execute = false;
bool dangerous = false;
for (size_t i = 0; i < mode.size; ++i) {
for (size_t i = 0; i < mode.size; i++) {
switch (mode.data[i]) {
case 'n':
remap = false; break;
@@ -1880,7 +1880,7 @@ static void write_msg(String message, bool to_err)
} \
line_buf[pos++] = message.data[i];
++no_wait_return;
no_wait_return++;
for (uint32_t i = 0; i < message.size; i++) {
if (got_int) {
break;
@@ -1891,7 +1891,7 @@ static void write_msg(String message, bool to_err)
PUSH_CHAR(i, out_pos, out_line_buf, msg);
}
}
--no_wait_return;
no_wait_return--;
msg_end();
}