tty: vt: fix up tabstops properly
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Mar 2018 09:43:26 +0000 (10:43 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:25 +0000 (00:30 +0100)
commit303f7c4c27da1ba0d54c62eb1ae66330bc1c835e
tree009f7b8370834df34a039f5530b037883d4fded2
parentbd7c606e6724adc01009d8551b7666a8bcb64a5c
tty: vt: fix up tabstops properly

commit f1869a890cdedb92a3fab969db5d0fd982850273 upstream.

Tabs on a console with long lines do not wrap properly, so correctly
account for the line length when computing the tab placement location.

Reported-by: James Holderness <j4_james@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/tty/vt/vt.c