All pastes #2123574 Raw Edit

Unnamed

public text v1 · immutable
#2123574 ·published 2012-03-02 19:26 UTC
rendered paste body
(gdb) f 0
#0  0x0000000000417f34 in ChangeWindowSize (p=0x11044d0, wi=80, he=50, hi=2000)
    at resize.c:750
750               if (ml->image[p->w_width] == ' ')
(gdb) l
745           /* never lose sight of the line with the cursor on it */
746           shift = -ncy;
747           for (yy = p->w_y + p->w_histheight - 1; yy >= 0 && ncy + shift < he; yy--)
748             {
749               ml = OLDWIN(yy);
750               if (ml->image[p->w_width] == ' ')
751                 break;
752               shift++;
753             }
754           if (shift < 0)

(gdb) p p->w_width
There is no member named w_width.
(gdb) p p->w_layer.l_width
$16 = 80
(gdb) p p->w_histheight
$17 = 2000
(gdb) p p->w_histheight
$18 = 2000
(gdb) p p->w_layer.l_y
$19 = 49