I wasn't quite leaving things is a good state.
I think this is better - as this ref no longer over-takes
a follow ref that won't be relocated.
But I really need to review this code.
Signed-off-by: NeilBrown <neil@brown.name>
c->end = pos->o;
attr_trim(&c->attrs, c->end);
text_add_edit(t, c, first_edit, 0, -diff);
- if (c->lst.next != &t->text) {
+ if (len && c->lst.next != &t->text) {
pos->c = list_next_entry(c, lst);
pos->o = pos->c->start;
} else