summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 8059c4e..f72ad9e 100644
--- a/buffer.c
+++ b/buffer.c
@@ -441,8 +441,7 @@ static BufferPos buffer_pos_advance(TextBuffer *buffer, BufferPos pos, size_t nc
}
-// returns "p2 - p1", that is, the number of characters between p1 and p2.
-static i64 buffer_pos_diff(TextBuffer *buffer, BufferPos p1, BufferPos p2) {
+i64 buffer_pos_diff(TextBuffer *buffer, BufferPos p1, BufferPos p2) {
assert(buffer_pos_valid(buffer, p1));
assert(buffer_pos_valid(buffer, p2));