[vte] [ring] Fix resize too
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [ring] Fix resize too
- Date: Wed, 16 Sep 2009 02:23:11 +0000 (UTC)
commit 338d4a485f5b7609be1861aed6558693f90955c1
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Sep 14 15:30:04 2009 -0400
[ring] Fix resize too
src/ring.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ring.c b/src/ring.c
index d136ad3..a5d5281 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -308,7 +308,8 @@ _vte_ring_resize (VteRing *ring, guint max_rows)
/* Adjust the start of tail chunk now */
if (_vte_ring_length (ring) > max_rows) {
ring->start = ring->end - max_rows;
- /* XXX writable */
+ if (ring->start >= ring->writable)
+ _vte_ring_reset_streams (ring, 0);
}
ring->max = max_rows;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]