summaryrefslogtreecommitdiff
path: root/point.c
diff options
context:
space:
mode:
Diffstat (limited to 'point.c')
-rw-r--r--point.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/point.c b/point.c
index 755b99f..515d73d 100644
--- a/point.c
+++ b/point.c
@@ -67,7 +67,7 @@ uint64_t rseek(struct point *point, uint8_t c, int limit) {
void prev_line(struct point *point, int window_width) {
move_point_backward(point);
move_point_backward(point);
- rseek(point, '\n', window_width);
+ rseek(point, '\n', window_width - 2);
if (element(point) == '\n') {
move_point_forward(point);
}