Lines Matching full:gd
110 struct grid *gd; in cmd_capture_pane_history() local
121 gd = wp->base.saved_grid; in cmd_capture_pane_history()
122 if (gd == NULL) { in cmd_capture_pane_history()
130 gd = wp->base.grid; in cmd_capture_pane_history()
139 top = gd->hsize; in cmd_capture_pane_history()
141 } else if (n < 0 && (u_int) -n > gd->hsize) in cmd_capture_pane_history()
144 top = gd->hsize + n; in cmd_capture_pane_history()
145 if (top > gd->hsize + gd->sy - 1) in cmd_capture_pane_history()
146 top = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
151 bottom = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
156 bottom = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
158 } else if (n < 0 && (u_int) -n > gd->hsize) in cmd_capture_pane_history()
161 bottom = gd->hsize + n; in cmd_capture_pane_history()
162 if (bottom > gd->hsize + gd->sy - 1) in cmd_capture_pane_history()
163 bottom = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
184 line = grid_string_cells(gd, 0, i, sx, &gc, flags, wp->screen); in cmd_capture_pane_history()
189 gl = grid_peek_line(gd, i); in cmd_capture_pane_history()