diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h index 5c0a6ab3118..d19ff22babd 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1351,8 +1351,8 @@ BUF_CHAR_ADDRESS (struct buffer *buf, ptrdiff_t pos) | |||
| 1351 | + (pos < buf->text->gpt ? 0 : buf->text->gap_size)); | 1351 | + (pos < buf->text->gpt ? 0 : buf->text->gap_size)); |
| 1352 | } | 1352 | } |
| 1353 | 1353 | ||
| 1354 | /* Convert PTR, the address of a char in buffer BUF, | 1354 | /* Convert PTR, the address of a char in buffer BUF, into a byte |
| 1355 | into a character position. */ | 1355 | position. */ |
| 1356 | 1356 | ||
| 1357 | INLINE ptrdiff_t | 1357 | INLINE ptrdiff_t |
| 1358 | BUF_PTR_BYTE_POS (struct buffer *buf, unsigned char *ptr) | 1358 | BUF_PTR_BYTE_POS (struct buffer *buf, unsigned char *ptr) |