diff options
Diffstat (limited to 'core/module-text.c')
| -rw-r--r-- | core/module-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/module-text.c b/core/module-text.c index f09cb75..bc1279a 100644 --- a/core/module-text.c +++ b/core/module-text.c @@ -238,5 +238,5 @@ static bool count_span(void *context, PureSpan span) { size_t pure_text_count(const PureDraft *draft, PureVersion version, size_t position, unsigned unit) { Count c = {0, unit}; if (position) pure_draft_read_version(draft, version, 0, position, count_span, &c); - return c.count + (unit ? 1 : 0); + return c.count; } |
