mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
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:
17
input.c
17
input.c
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user