vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit dbc06c949af744aeec6bd391842f77c1d5bdd5b3 parent 309672a0255bc2c6a453e0df753b9358855deb0d Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 28 Sep 2014 10:59:23 +0200 Fix typo in piece table caching layer This resulted in uneccesary pieces of size 1. Diffstat:
| M | text.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)