aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-28 10:59:23 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-28 10:59:23 +0200
commitd954d51a4ce4d6fa13e9312fb72afa0f666a3378 (patch)
treed37d4368790cf802a7c0fe0487e01a176e5873f7 /text.c
parent7bdfddc15768a1507b029578e408483efe51ba02 (diff)
downloadvis-d954d51a4ce4d6fa13e9312fb72afa0f666a3378.tar.gz
vis-d954d51a4ce4d6fa13e9312fb72afa0f666a3378.tar.xz
Fix typo in piece table caching layer
This resulted in uneccesary pieces of size 1.
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 650f095..3225dd2 100644
--- a/text.c
+++ b/text.c
@@ -249,7 +249,7 @@ static bool cache_contains(Text *txt, Piece *p) {
return false;
Piece *start = a->change->new.start;
- Piece *end = a->change->new.start;
+ Piece *end = a->change->new.end;
bool found = false;
for (Piece *cur = start; !found; cur = cur->next) {
if (cur == p)