mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
refactor: fix clint warnings (#17682)
This commit is contained in:
@@ -111,7 +111,7 @@ bool try_leave(const TryState *const tstate, Error *const err)
|
||||
/// try_enter()/try_leave() pair should be used instead.
|
||||
void try_start(void)
|
||||
{
|
||||
++trylevel;
|
||||
trylevel++;
|
||||
}
|
||||
|
||||
/// End try block, set the error message if any and return true if an error
|
||||
@@ -1037,8 +1037,7 @@ static void set_option_value_for(char *key, int numval, char *stringval, int opt
|
||||
aco_save_T aco;
|
||||
|
||||
try_start();
|
||||
switch (opt_type)
|
||||
{
|
||||
switch (opt_type) {
|
||||
case SREQ_WIN:
|
||||
if (switch_win_noblock(&switchwin, (win_T *)from, win_find_tabpage((win_T *)from), true)
|
||||
== FAIL) {
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user