comparison src/line-number.c @ 406:b8cc9ab3f761 r21-2-33

Import from CVS: tag r21-2-33
author cvs
date Mon, 13 Aug 2007 11:17:09 +0200
parents 2f8bb876ab1d
children 697ef44129c6
comparison
equal deleted inserted replaced
405:0e08f63c74d2 406:b8cc9ab3f761
291 } 291 }
292 cached_lines = XINT (LINE_NUMBER_BEGV (b)); 292 cached_lines = XINT (LINE_NUMBER_BEGV (b));
293 get_nearest_line_number (b, &beg, pos, &cached_lines); 293 get_nearest_line_number (b, &beg, pos, &cached_lines);
294 } 294 }
295 295
296 scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : EMACS_INT_MIN, 296 scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : -EMACS_INT_MAX,
297 &shortage, 0); 297 &shortage, 0);
298 298
299 line = EMACS_INT_MAX - shortage; 299 line = EMACS_INT_MAX - shortage;
300 if (beg > pos) 300 if (beg > pos)
301 line = -line; 301 line = -line;