[prev in list] [next in list] [prev in thread] [next in thread]
List: elinks-cvs
Subject: [ELinks] elinks - zas: Revert wrong patch: even if nothing was red...
From: cvs () pasky ! or ! cz
Date: 2004-04-30 12:44:36
Message-ID: 20040430124436.25734.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 12:44:36 2004 GMT
---- Log message:
Revert wrong patch: even if nothing was redrawn, we possibly still need to move
cursor. It fixes issue reported by sstar on irc, thanks to Jonas to pointed it out.
---- Files affected:
elinks/src/terminal:
screen.c (1.134 -> 1.135)
http://cvsweb.elinks.or.cz/cvsweb.cgi/elinks/src/terminal/screen.c.diff?r1=1.134&r2=1.135&f=u
---- Diffs:
elinks/src/terminal/screen.c | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
Index: elinks/src/terminal/screen.c
diff -u elinks/src/terminal/screen.c:1.134 elinks/src/terminal/screen.c:1.135
--- elinks/src/terminal/screen.c:1.134 Fri Apr 30 11:26:22 2004
+++ elinks/src/terminal/screen.c Fri Apr 30 14:44:31 2004
@@ -657,21 +657,24 @@
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;
+ }
- add_cursor_move_to_string(&image, screen->cy + 1,
+ /* Even if nothing was redrawn, we possibly still need to move
+ * cursor. */
+ 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);
- }
+ }
- 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