(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE.
This commit is contained in:
parent
d41d5dd4a2
commit
3ab364ce24
1 changed files with 4 additions and 4 deletions
|
@ -149,8 +149,8 @@ buf_charpos_to_bytepos (b, charpos)
|
|||
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 @@ buf_bytepos_to_charpos (b, bytepos)
|
|||
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));
|
||||
|
|
Loading…
Add table
Reference in a new issue