Lines Matching defs:to
4 * The contents of this file are subject to the terms of the
24 * Use is subject to license terms.
50 * id < 0 : number of lines to delete
51 * id > 0 : number of lines to insert
57 int endy, endx, to, fr, num_lines, dir;
69 * function to do it in one fell swoop.
86 * Check that the amount of lines to delete aren't larger
88 * don't have to re-compute if the if comes out true.
96 * moving "to" the new place. This is the offset which
97 * we have to re-align our pointers by.
98 * We want to start setting the current line's pointer
99 * to point to the offset's line. We want to move line "fr"
100 * to line "to".
103 to = win->_cury;
104 fr = to - id;
112 to = endy - 1;
113 fr = to - id;
120 * pointers to simulate insert/delete line. Otherwise,
121 * to propogate the changes to parents and siblings
122 * we have to memcpy the text around.
124 * Set quick to tell us which we have to do.
132 for (; num_lines > 0; num_lines--, to += dir, fr += dir) {
135 sw = win->_y[to];
136 win->_y[to] = win->_y[fr];
139 mk = _MARKS[to];
140 _MARKS[to] = _MARKS[fr];
147 mk = _COLOR_MARKS[to];
148 _COLOR_MARKS[to] = _COLOR_MARKS[fr];
154 (void) memcpy((char *) win->_y[to], (char *)
164 begch[to] = begch[fr];
165 endch[to] = endch[fr];
166 _CURHASH[to] = _CURHASH[fr];
169 begch[to] = 0;
170 endch[to] = endx - 1;
176 num_lines = endy - to;
178 num_lines = to - (win->_cury - 1);
188 for (; num_lines > 0; --num_lines, to += dir) {
190 win->_cury = (short) to;