col.c (f23ed79b087288cc2498155c135bf33b5994783e) col.c (7bc60a161677faa9fce8d0a5e50e66cc06c22245)
1/*-
2 * Copyright (c) 1990, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Rendell of the Memorial University of Newfoundland.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 191 unchanged lines hidden (view full) ---

200 continue;
201 --cur_col;
202 continue;
203 case CR:
204 cur_col = 0;
205 continue;
206 case ESC: /* just ignore EOF */
207 switch(getwchar()) {
1/*-
2 * Copyright (c) 1990, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Michael Rendell of the Memorial University of Newfoundland.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 191 unchanged lines hidden (view full) ---

200 continue;
201 --cur_col;
202 continue;
203 case CR:
204 cur_col = 0;
205 continue;
206 case ESC: /* just ignore EOF */
207 switch(getwchar()) {
208 /*
209 * In the input stream, accept both the
210 * XPG5 sequences ESC-digit and the
211 * traditional BSD sequences ESC-ctrl.
212 */
213 case '\007':
214 /* FALLTHROUGH */
208 case RLF:
209 addto_lineno(&cur_line, -2);
210 break;
215 case RLF:
216 addto_lineno(&cur_line, -2);
217 break;
218 case '\010':
219 /* FALLTHROUGH */
211 case RHLF:
212 addto_lineno(&cur_line, -1);
213 break;
220 case RHLF:
221 addto_lineno(&cur_line, -1);
222 break;
223 case '\011':
224 /* FALLTHROUGH */
214 case FHLF:
215 addto_lineno(&cur_line, 1);
216 if (cur_line > max_line)
217 max_line = cur_line;
218 }
219 continue;
220 case NL:
221 addto_lineno(&cur_line, 2);

--- 367 unchanged lines hidden ---
225 case FHLF:
226 addto_lineno(&cur_line, 1);
227 if (cur_line > max_line)
228 max_line = cur_line;
229 }
230 continue;
231 case NL:
232 addto_lineno(&cur_line, 2);

--- 367 unchanged lines hidden ---