[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #35757] Switching from altscreen after window resize
From: |
LukášNykrýn |
Subject: |
[screen-devel] [bug #35757] Switching from altscreen after window resize causes segfault in resize.c:750 |
Date: |
Mon, 30 Apr 2012 09:41:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2 |
Follow-up Comment #4, bug #35757 (project screen):
I have an idea, but I am not sure if I am not completely wrong. When is screen
calculating resize it uses current cursor location, but I think that it should
use the position where the cursor was before entering altscreen. I have tried
this small modification and segfault is gone.
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..8df79b2 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1438,8 +1438,8 @@ int c, intermediate;
}
else
{
- LeaveAltScreen(curr);
RestoreCursor(&curr->w_alt.cursor);
+ LeaveAltScreen(curr);
}
if (a1 == 47 && !i)
curr->w_saved.on = 0;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35757>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/