aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)