patch-1.3.28 linux/drivers/char/selection.c

Next file: linux/drivers/char/selection.h
Previous file: linux/drivers/char/scc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/drivers/char/selection.c linux/drivers/char/selection.c
@@ -38,7 +38,7 @@
 static int sel_buffer_lth = 0;
 static char *sel_buffer = NULL;
 
-#define sel_pos(n)	inverse_translate(screen_word(sel_cons, n, 1) & 0xff)
+#define sel_pos(n)   inverse_translate(scrw2glyph(screen_word(sel_cons, n, 1)))
 
 /* clear_selection, highlight and highlight_pointer can be called
    from interrupt (via scrollback/front) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this