summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-01 17:46:35 -0500
committerWormHeamer2026-01-01 17:46:35 -0500
commitf06633322a5eb5985b02c71deb409e529908d5b0 (patch)
tree3b1d0193000c11fd395b7851b581d69596ca7a3f
parent29130a2b0a52e3375593fd14c5dcc0b549baaa8a (diff)
remove some trailing spaces
-rw-r--r--txt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/txt.c b/txt.c
index a982cd2..0a24b22 100644
--- a/txt.c
+++ b/txt.c
@@ -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;