Rebased on current master without conflicts and completed the cleanup: comments above new function in longer functions, metadata comments, aligned declarations and simpler guards, consistent braces and shorter lines.

This commit is contained in:
Michael Grant
2026-10-09 23:37:40 +02:00
parent 6826d87bdb
commit 729b7e7a13
14 changed files with 535 additions and 483 deletions

17
input.c
View File

@@ -2812,15 +2812,11 @@ input_reply_kitty(struct input_ctx *ictx,
if (result->quiet >= 2)
return;
if (result->quiet == 1) {
if (strcmp(message, "OK") == 0)
return;
}
if (result->image_id == 0) {
if (result->image_number == 0) {
if (result->action != 'q')
return;
}
if (result->quiet == 1 && strcmp(message, "OK") == 0)
return;
if (result->image_id == 0 && result->image_number == 0 &&
result->action != 'q') {
return;
}
if (result->image_number != 0) {
if (result->image_id != 0) {
@@ -2893,8 +2889,9 @@ input_exit_apc(struct input_ctx *ictx)
#ifdef ENABLE_IMAGES
if (ictx->input_len > 1 && ictx->input_buf[0] == 'G' &&
input_handle_kitty(ictx, ictx->input_buf + 1,
ictx->input_len - 1))
ictx->input_len - 1)) {
return;
}
#endif
if (wp != NULL &&