Mercurial > emacs
changeset 44328:ed296e71aa64
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 01 Apr 2002 23:07:40 +0000 |
parents | 1e166973cd8b |
children | f532fa5aeca1 |
files | src/marker.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/marker.c Mon Apr 01 23:06:21 2002 +0000 +++ b/src/marker.c Mon Apr 01 23:07:40 2002 +0000 @@ -149,8 +149,8 @@ if (best_above == best_above_byte) return charpos; - best_below = 1; - best_below_byte = 1; + best_below = BEG; + best_below_byte = BEG_BYTE; /* We find in best_above and best_above_byte the closest known point above CHARPOS, @@ -326,8 +326,8 @@ if (best_above == best_above_byte) return bytepos; - best_below = 1; - best_below_byte = 1; + best_below = BEG; + best_below_byte = BEG_BYTE; CONSIDER (BUF_PT_BYTE (b), BUF_PT (b)); CONSIDER (BUF_GPT_BYTE (b), BUF_GPT (b));