summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 102a773..1f4496b 100644
--- a/main.c
+++ b/main.c
@@ -85,14 +85,14 @@ int empty_line(TxtLoc l) {
}
TxtLoc next_par(TxtLoc l) {
- while (!at_end(l) && empty_line(l)) l = next_line(l);
- while (!at_end(l) && !empty_line(l)) l = next_line(l);
+ while (!at_end(l) && empty_line(l)) l = next_newline(l);
+ while (!at_end(l) && !empty_line(l)) l = next_newline(l);
return l;
}
TxtLoc prev_par(TxtLoc l) {
- while (!at_start(l) && empty_line(l)) l = prev_line(l);
- while (!at_start(l) && !empty_line(l)) l = prev_line(l);
+ while (!at_start(l) && empty_line(l)) l = prev_newline(l);
+ while (!at_start(l) && !empty_line(l)) l = prev_newline(l);
return l;
}