Lines Matching defs:destcol
52 static int outcol, outline, destcol, destline;
63 destcol = x;
77 if (destcol >= COLS) {
78 destline += destcol / COLS;
79 destcol %= COLS;
109 c = destcol;
111 destcol = 0;
113 destcol = c;
146 cgp = tgoto(CM, destcol, destline);
155 outcol = destcol;
194 * 1 char. So i+destcol is cost of motion with home.
197 i = (destcol / HARDTABS) + (destcol % HARDTABS);
199 i = destcol;
203 if (destcol >= outcol) { /* if motion is to the right */
204 j = destcol / HARDTABS - outcol / HARDTABS;
206 j += destcol % HARDTABS;
208 j = destcol - outcol;
212 if (outcol - destcol <= i && (BS || BC))
213 i = j = outcol - destcol;
254 i = destcol % HARDTABS + destcol / HARDTABS;
256 i = destcol;
258 * if (BT && outcol > destcol &&
259 * (j = (((outcol+7) & ~7) - destcol - 1) >> 3)) {
261 * if ((k += (destcol&7)) > 4)
262 * j += 8 - (destcol&7);
268 j = outcol - destcol;
285 if (j > i + 1 || outcol > destcol && !BS && !BC) {
317 while (outcol > destcol) {
321 * if (BT && outcol - destcol > k + 4) {
340 if (GT && destcol - outcol > 1) {
343 if (i > destcol)
351 if (destcol - outcol > 4 && i < COLS && (BC || BS)) {
357 while (outcol > destcol) {
366 while (outcol < destcol) {