diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-28 10:59:23 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-28 10:59:23 +0200 |
| commit | d954d51a4ce4d6fa13e9312fb72afa0f666a3378 (patch) | |
| tree | d37d4368790cf802a7c0fe0487e01a176e5873f7 /text.c | |
| parent | 7bdfddc15768a1507b029578e408483efe51ba02 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
