Adjust code style to comply with clang-format rules

This commit is contained in:
yabu76 2025-08-14 13:50:58 +09:00
parent 102657af58
commit 4aa36e6e91
9 changed files with 285 additions and 159 deletions

View file

@ -90,7 +90,7 @@ static void readline_input_cr(void)
rl_history_count++;
}
else
{
{
free(rl_history[0]);
memmove(&rl_history[0], &rl_history[1], (RL_HISTORY_MAX - 1) * sizeof(char*));
rl_history[RL_HISTORY_MAX - 1] = strndup(rl_line, rl_line_length);