Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5034
Modified Files:
window-copy.c
Log Message:
Avoid crashing in copy-mode during resize, when our history-viewing offset is
larger than the new total number of history lines.
Index: window-copy.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window-copy.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- window-copy.c 6 Apr 2010 22:02:52 -0000 1.115
+++ window-copy.c 28 Apr 2010 14:29:27 -0000 1.116
@@ -340,6 +340,8 @@
data->cy = sy - 1;
if (data->cx > sx)
data->cx = sx;
+ if (data->oy > screen_hsize(data->backing))
+ data->oy = screen_hsize(data->backing);
window_copy_clear_selection(wp);
------------------------------------------------------------------------------
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs