From: Adam Borowski Date: Mon, 27 Mar 2017 12:21:13 +0000 (+0200) Subject: vt: set mouse selection word-chars to gpm's default X-Git-Tag: v4.12-rc1~66^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d6d44aee0aed24f243a37ec525a4fcb40e6e2d4;p=karo-tx-linux.git vt: set mouse selection word-chars to gpm's default Since forever, gpm was this code's only user, and it overrides the table on start so the default was never seen -- until Bill Allombert's "consolation" came in. The in-kernel set is "A-Za-z0-9_" which fails to catch typical file names, etc. Let's change this to gpm's conservative default, ie "-A-Za-z0-9_./"; most terminals include more, for example xfce4-terminal has "-A-Za-z0-9,./?%&#:_=+@~". There's some discussion at https://bugs.debian.org/846587 Signed-off-by: Adam Borowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c index 36e1b8c7680f..2252e11d8347 100644 --- a/drivers/tty/vt/selection.c +++ b/drivers/tty/vt/selection.c @@ -84,7 +84,7 @@ void clear_selection(void) */ static u32 inwordLut[8]={ 0x00000000, /* control chars */ - 0x03FF0000, /* digits */ + 0x03FFE000, /* digits and "-./" */ 0x87FFFFFE, /* uppercase and '_' */ 0x07FFFFFE, /* lowercase */ 0x00000000,