diff options
| author | WormHeamer | 2026-01-01 17:46:35 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-01 17:46:35 -0500 |
| commit | f06633322a5eb5985b02c71deb409e529908d5b0 (patch) | |
| tree | 3b1d0193000c11fd395b7851b581d69596ca7a3f /txt.c | |
| parent | 29130a2b0a52e3375593fd14c5dcc0b549baaa8a (diff) | |
remove some trailing spaces
Diffstat (limited to 'txt.c')
| -rw-r--r-- | txt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,11 +13,11 @@ #include "utf8.h" #include "str.h" -void txt_replace_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n) { +void txt_replace_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n) { b->ptbl.v[pi] = (TxtPiece) { buf, ofs, n }; } -void txt_insert_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n) { +void txt_insert_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n) { DA_FIT(&b->ptbl, b->ptbl.n + 1); if (pi < b->ptbl.n) { MOVE(&b->ptbl.v[pi+1], &b->ptbl.v[pi], b->ptbl.n - pi); @@ -193,7 +193,7 @@ TxtLoc txt_delete_range(TxtLoc lo, TxtLoc hi) { } TxtLoc txt_delete_c(TxtLoc l) { - while (!at_start(l) && (txt_byte(bprev(l)) & 0xc0) == 0x80) + while (!at_start(l) && (txt_byte(bprev(l)) & 0xc0) == 0x80) l = txt_delete(l, 1); l = txt_delete(l, 1); return l; |
