Commit bc80932c authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

vt: selection, indent switch-case properly



Shift the cases one level left as this is how we are supposed to write
the switch-case code according to the CodingStyle.

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219073951.16151-9-jslaby@suse.cz


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ff66e08
Loading
Loading
Loading
Loading
+35 −37
Original line number Diff line number Diff line
@@ -226,16 +226,14 @@ int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty)
	}
	unicode = vt_do_kdgkbmode(fg_console) == K_UNICODE;

	switch (v->sel_mode)
	{
	switch (v->sel_mode) {
	case TIOCL_SELCHAR:	/* character-by-character selection */
		new_sel_start = ps;
		new_sel_end = pe;
		break;
	case TIOCL_SELWORD:	/* word-by-word selection */
		spc = isspace(sel_pos(ps, unicode));
			for (new_sel_start = ps; ; ps -= 2)
			{
		for (new_sel_start = ps; ; ps -= 2) {
			if ((spc && !isspace(sel_pos(ps, unicode))) ||
			    (!spc && !inword(sel_pos(ps, unicode))))
				break;
@@ -243,9 +241,9 @@ int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty)
			if (!(ps % vc->vc_size_row))
				break;
		}

		spc = isspace(sel_pos(pe, unicode));
			for (new_sel_end = pe; ; pe += 2)
			{
		for (new_sel_end = pe; ; pe += 2) {
			if ((spc && !isspace(sel_pos(pe, unicode))) ||
			    (!spc && !inword(sel_pos(pe, unicode))))
				break;