Romain Francoise wrote: > While doing some testing I found the following crash. It looks > related to the copy/output mode rewrite:
<snip> > It can easily be reproduced by maximizing a terminal which contains > a tmux window showing `list-keys' output. Thanks, I believe I just fixed it in SourceForge. It was happening because the history-viewing offset, data->oy, was larger than the actual number of lines in the (new) history after a resize, and the expression py = screen_hsize(data->backing) + data->cy - data->oy; resulted in an underflow for py (which is unsigned). It looks to me like it predates the copy/output-mode merge; but of course it wouldn't have shown up for "list-keys" prior to the merge. I think it would still have crashed during copy-mode, though. -- Micah J. Cowan http://micah.cowan.name/ ------------------------------------------------------------------------------ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users