repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 9ce3163777f87b29be0cc14d2ea6edcb4af23642: path_to: revision_to:
commit 9ce3163777f87b29be0cc14d2ea6edcb4af23642 Author: Emanuele GiaquintaDate: 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
--- 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
--- 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-----