projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.2.36 "Notos"
[chise/xemacs-chise.git]
/
src
/
line-number.c
diff --git
a/src/line-number.c
b/src/line-number.c
index
cce759f
..
e9a18dc
100644
(file)
--- a/
src/line-number.c
+++ b/
src/line-number.c
@@
-98,7
+98,7
@@
allocate_line_number_cache (struct buffer *b)
}
/* Flag LINE_NUMBER_BEGV (b) as dirty. Do it only if the line number
}
/* Flag LINE_NUMBER_BEGV (b) as dirty. Do it only if the line number
- cache is already initialized. */
+ cache is already initialized. */
void
narrow_line_number_cache (struct buffer *b)
{
void
narrow_line_number_cache (struct buffer *b)
{
@@
-293,7
+293,7
@@
buffer_line_number (struct buffer *b, Bufpos pos, int cachep)
get_nearest_line_number (b, &beg, pos, &cached_lines);
}
get_nearest_line_number (b, &beg, pos, &cached_lines);
}
- scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : EMACS_INT_MIN,
+ scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : -EMACS_INT_MAX,
&shortage, 0);
line = EMACS_INT_MAX - shortage;
&shortage, 0);
line = EMACS_INT_MAX - shortage;