aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit3
-rw-r--r--src/ChangeLog8
-rw-r--r--src/dispnew.c6
-rw-r--r--src/msdos.c6
4 files changed, 20 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 1fd7e288736..b3bb6b58267 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -535,6 +535,9 @@ define pgx
535 if ($g->overlaps_vertically_p) 535 if ($g->overlaps_vertically_p)
536 printf " OVL" 536 printf " OVL"
537 end 537 end
538 if ($g->avoid_cursor_p)
539 printf " AVOID"
540 end
538 if ($g->left_box_line_p) 541 if ($g->left_box_line_p)
539 printf " [" 542 printf " ["
540 end 543 end
diff --git a/src/ChangeLog b/src/ChangeLog
index feda54defd8..9ceb19ad486 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12010-08-06 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4
5 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6
7 * .gdbinit (pgx): Display the avoid_cursor_p flag.
8
12010-08-06 Dan Nicolaescu <dann@ics.uci.edu> 92010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef 11 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
diff --git a/src/dispnew.c b/src/dispnew.c
index 52d50186939..35893872c73 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1528,7 +1528,11 @@ realloc_glyph_pool (struct glyph_pool *pool, struct dim matrix_dim)
1528 int size = needed * sizeof (struct glyph); 1528 int size = needed * sizeof (struct glyph);
1529 1529
1530 if (pool->glyphs) 1530 if (pool->glyphs)
1531 pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size); 1531 {
1532 pool->glyphs = (struct glyph *) xrealloc (pool->glyphs, size);
1533 memset (pool->glyphs + pool->nglyphs, 0,
1534 size - pool->nglyphs * sizeof (struct glyph));
1535 }
1532 else 1536 else
1533 { 1537 {
1534 pool->glyphs = (struct glyph *) xmalloc (size); 1538 pool->glyphs = (struct glyph *) xmalloc (size);
diff --git a/src/msdos.c b/src/msdos.c
index dda24cc868f..fefefd9147c 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1593,14 +1593,16 @@ IT_display_cursor (int on)
1593 ScreenSetCursor (current_pos_Y, current_pos_X); 1593 ScreenSetCursor (current_pos_Y, current_pos_X);
1594 cursor_cleared = 0; 1594 cursor_cleared = 0;
1595 if (tty->termscript) 1595 if (tty->termscript)
1596 fprintf (tty->termscript, "\nCURSOR ON"); 1596 fprintf (tty->termscript, "\nCURSOR ON (%dx%d)",
1597 current_pos_Y, current_pos_X);
1597 } 1598 }
1598 else if (!on && !cursor_cleared) 1599 else if (!on && !cursor_cleared)
1599 { 1600 {
1600 ScreenSetCursor (-1, -1); 1601 ScreenSetCursor (-1, -1);
1601 cursor_cleared = 1; 1602 cursor_cleared = 1;
1602 if (tty->termscript) 1603 if (tty->termscript)
1603 fprintf (tty->termscript, "\nCURSOR OFF"); 1604 fprintf (tty->termscript, "\nCURSOR OFF (%dx%d)",
1605 current_pos_Y, current_pos_X);
1604 } 1606 }
1605} 1607}
1606 1608