From d05f95eacbf43766d183f8a916a271b5bf3a6b45 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 1 Apr 2004 06:52:50 +0000 Subject: Fixed a nasty bug that distorts the output on terminals that do not have the "eat_newline_glitch (xn)" glitch, e.g., the cons25 family of terminals. Based on patch provided by Petr Baudis. Approved by: Jason Harris (maintainer) --- www/elinks/Makefile | 1 + www/elinks/files/patch-src::terminal::screen.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 www/elinks/files/patch-src::terminal::screen.c (limited to 'www/elinks') diff --git a/www/elinks/Makefile b/www/elinks/Makefile index db0ee357b1e1..17928131762a 100644 --- a/www/elinks/Makefile +++ b/www/elinks/Makefile @@ -7,6 +7,7 @@ PORTNAME= elinks PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://elinks.or.cz/download/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc diff --git a/www/elinks/files/patch-src::terminal::screen.c b/www/elinks/files/patch-src::terminal::screen.c new file mode 100644 index 000000000000..ac6dd12b37fc --- /dev/null +++ b/www/elinks/files/patch-src::terminal::screen.c @@ -0,0 +1,12 @@ +--- src/terminal/screen.c Sun Jan 4 02:07:50 2004 ++++ src/terminal/screen.c Fri Feb 20 11:43:54 2004 +@@ -575,6 +575,9 @@ add_char256(struct string *screen, struc + register int x = 0; \ + \ + for (; x < (term_)->width; x++, current++, pos++) { \ ++ if (y == (term_)->height - 1 && \ ++ x == (term_)->width - 1) \ ++ break; \ + if (compare_bg_color(pos->color, current->color)) { \ + /* No update for exact match. */ \ + if (compare_fg_color(pos->color, current->color)\ -- cgit v1.2.3