Commit 23672a57 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman

tty: vt: reflow csi_K()

Push cases one level left, according to coding style.
Signed-off-by: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-17-jirislaby@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7eb38a76
...@@ -1555,20 +1555,20 @@ static void csi_K(struct vc_data *vc) ...@@ -1555,20 +1555,20 @@ static void csi_K(struct vc_data *vc)
int offset; int offset;
switch (vc->vc_par[0]) { switch (vc->vc_par[0]) {
case CSI_K_CURSOR_TO_LINEEND: case CSI_K_CURSOR_TO_LINEEND:
offset = 0; offset = 0;
count = vc->vc_cols - vc->state.x; count = vc->vc_cols - vc->state.x;
break; break;
case CSI_K_LINESTART_TO_CURSOR: case CSI_K_LINESTART_TO_CURSOR:
offset = -vc->state.x; offset = -vc->state.x;
count = vc->state.x + 1; count = vc->state.x + 1;
break; break;
case CSI_K_LINE: case CSI_K_LINE:
offset = -vc->state.x; offset = -vc->state.x;
count = vc->vc_cols; count = vc->vc_cols;
break; break;
default: default:
return; return;
} }
vc_uniscr_clear_line(vc, vc->state.x + offset, count); vc_uniscr_clear_line(vc, vc->state.x + offset, count);
scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count); scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment