diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-29 13:25:46 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-29 13:25:46 -0300 |
commit | 839ff03b98de80ba367872f5f6d8cd28e706152b (patch) | |
tree | b4c166f50687db020d8c443029b535704683fecb /point.c | |
parent | 171ace02cb9a57a6552c1534d7dbf5ab5f037754 (diff) | |
download | jet-839ff03b98de80ba367872f5f6d8cd28e706152b.tar.gz jet-839ff03b98de80ba367872f5f6d8cd28e706152b.zip |
Fix prev_line moving too much on long lines
Diffstat (limited to 'point.c')
-rw-r--r-- | point.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |