diff options
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |
