repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 9ce3163777f87b29be0cc14d2ea6edcb4af23642:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 9ce3163777f87b29be0cc14d2ea6edcb4af23642
Author: Emanuele Giaquinta 
Date:   Fri Apr 1 11:06:42 2011 +0000

    Disable the overlay in scr_reset as its offsets become invalid after
    calling this function. Fixes crash when the window is resized and the
    overlay is active.

diff --git a/Changes b/Changes
index b24219f7f04a7a22c3706aa88dbc8b1634454307..
index ..e34c9f58b665ea1425518e8128ac30b0c3b81b33 100644
--- a/Changes
+++ b/Changes
@@ -21,6 +21,8 @@ TODO: perl-shell-window? perl-unix-socket?
 TODO: command line editing when icanon?

 TODO: perl selection object creation/destruction
+	- fix crash when the window is resized and the overlay is active
+	  (Emanuele Giaquinta, reported by Ryan Kavanagh).
         - match character-wise rather than byte-wise in selection
           extension again. perl 5.8.9+ is required to avoid extreme
           slowdowns. Fixes debian bugs #523072, #616463.
diff --git a/src/screen.C b/src/screen.C
index 491210bd74773db56229defa738b57fd66fc7036..
index ..0ede498982bae593797fcecb58c0da2726a1ac3a 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -161,6 +161,10 @@ rxvt_term::scr_kill_char (line_t &l, int col) const NOTHROW
 void
 rxvt_term::scr_reset ()
 {
+#if ENABLE_OVERLAY
+  scr_overlay_off ();
+#endif
+
   view_start = 0;
   num_scr = 0;

-----END OF PAGE-----