On Sun, Feb 10, 2013 at 02:11:32PM +0000, Nicholas Marriott wrote: > Here is a working version, at least for the last minute or so :-).
Here's a tiny fixup which was causing xrealloc to complain of there being nothing to realloc (zero size) when trying to split a window: diff --git a/grid.c b/grid.c index c7f34d8..d4409c4 100644 --- a/grid.c +++ b/grid.c @@ -483,6 +483,9 @@ grid_reflow_join(struct grid *dst, u_int *py, struct grid_line *src_gl, ox = dst_gl->cellsize; nx = ox + to_copy; + if (nx == 0) + return; + /* Resize the destination line. */ dst_gl->celldata = xrealloc(dst_gl->celldata, nx, sizeof *dst_gl->celldata); Note that whilst this change is fine, it's still very CPU intensive, so I'm going to have to profile it to see what's going on. -- Thomas Adam ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users