Commit 1c114685 authored by Christian Persch's avatar Christian Persch
Browse files

Don't shadow a global definition

parent cc095a66
......@@ -173,7 +173,7 @@ _vte_ring_freeze_row (VteRing *ring, gulong position, const VteRowData *row)
}
static void
_vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean truncate)
_vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean do_truncate)
{
VteRowRecord records[2], record;
VteIntCellAttr attr;
......@@ -250,7 +250,7 @@ _vte_ring_thaw_row (VteRing *ring, gulong position, VteRowData *row, gboolean tr
}
}
if (truncate) {
if (do_truncate) {
if (records[0].text_offset < ring->last_attr.text_offset)
if (!_vte_stream_read (ring->attr_stream, records[0].attr_offset, (char *) &ring->last_attr, sizeof (ring->last_attr))) {
ring->last_attr.text_offset = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment