diff options
Diffstat (limited to 'txt.c')
| -rw-r--r-- | txt.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -33,6 +33,11 @@ void txt_remove_piece(Txt *b, u32 pi) { b->ptbl.n--; } +/* ensures that the returned TxtLoc is at the end of its respective piece, + * one past the final character. note that this is an invalid position for + * normal navigation, so it must be moved back into place with resolve_loc() + * or txt_post_edit(). + */ TxtLoc txt_split_piece(TxtLoc l) { TxtPiece *p = &l.t->ptbl.v[l.p]; if (l.i < p->n) { |
