[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-cvs
Subject:    [ELinks] elinks - zas: Do not test @image.length if this is not ne...
From:       cvs () pasky ! or ! cz
Date:       2004-04-30 9:03:17
Message-ID: 20040430090317.16925.qmail () machine ! sinus ! cz
[Download RAW message or body]

This is an automated notification of a change to the ELinks CVS tree.

Author: zas
Module: elinks
   Tag: <TRUNK>
  Date: Fri Apr 30 09:03:17 2004 GMT

---- Log message:

Do not test @image.length if this is not needed.


---- Files affected:

elinks/src/terminal:
   screen.c (1.131 -> 1.132) 
    http://cvsweb.elinks.or.cz/cvsweb.cgi/elinks/src/terminal/screen.c.diff?r1=1.131&r2=1.132&f=u


---- Diffs:

 elinks/src/terminal/screen.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)


Index: elinks/src/terminal/screen.c
diff -u elinks/src/terminal/screen.c:1.131 elinks/src/terminal/screen.c:1.132
--- elinks/src/terminal/screen.c:1.131	Fri Apr 30 10:48:55 2004
+++ elinks/src/terminal/screen.c	Fri Apr 30 11:03:11 2004
@@ -661,24 +661,24 @@
 		add_bytes_to_string(&image, "\033[0m", 4);
 
 		/* If we ended in border state end the frame mode. */
-		if (state.border && driver->frame_seqs) {
+		if (state.border && driver->frame_seqs)
 			add_term_string(&image, driver->frame_seqs[0]);
-		}
-	}
 
-	if (image.length
-	    || screen->cx != screen->lcx
-	    || screen->cy != screen->lcy) {
-		screen->lcx = screen->cx;
-		screen->lcy = screen->cy;
+		if (image.length
+		    || screen->cx != screen->lcx
+		    || screen->cy != screen->lcy) {
+			screen->lcx = screen->cx;
+			screen->lcy = screen->cy;
 
-		add_cursor_move_to_string(&image, screen->cy + 1, screen->cx + 1);
-	}
+			add_cursor_move_to_string(&image, screen->cy + 1,
+						  screen->cx + 1);
+		}
 
-	if (image.length) {
-		if (term->master) want_draw();
-		hard_write(term->fdout, image.source, image.length);
-		if (term->master) done_draw();
+		if (image.length) {
+			if (term->master) want_draw();
+			hard_write(term->fdout, image.source, image.length);
+			if (term->master) done_draw();
+		}
 	}
 
 	done_string(&image);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic