Whoops, looks like my patch won't compile if you are using strict C - I
declared an int in a for loop (forced habit, I work in C++ all day).  When I
get home from work tonight I'll update the patch but even a Gnome user
should be able to figure out how to fix it.

On Wed, Sep 8, 2010 at 12:41 AM, Niki Yoshiuchi <aplu...@gmail.com> wrote:

> When resizing a window in dvtm, the text buffers for each row are resized
> to reflect the number of columns.  When making a window smaller, this has
> the effect of deleting all the text that has gone off the edge of the
> window.  If you then make the window larger, that text won't be redrawn - it
> has been lost.
>
> I've attached a patch for dvtm that changes the way it handles resizes.
>  Now it will only resize the buffers if the window is resized so it is
> larger than the previous largest.  This way the text in the buffers never
> gets lost.  It has the unfortunate side effect of forcing a redraw on each
> row everytime you resize (unless the number of columns doesn't change) but I
> think it's worth it.  It also reduces the number of memory
> allocations/reallocations.
>
> -Niki Yoshiuchi
>

Reply via email to