diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-06-20 16:56:29 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-06-20 16:56:29 -0300 |
commit | cce3749761fc036f196cb50319c591f5d1fa5625 (patch) | |
tree | 13a4691221c0e46e672f9c5b0976c7d28f47b80a /point.cpp | |
parent | 74f957ef54a912b9396232fb3b0bb8c8c47bf5f7 (diff) | |
download | jet-cce3749761fc036f196cb50319c591f5d1fa5625.tar.gz jet-cce3749761fc036f196cb50319c591f5d1fa5625.zip |
Fix cursor jumping to bottom of screen on rseek
Diffstat (limited to 'point.cpp')
-rw-r--r-- | point.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -148,7 +148,7 @@ struct Point { uint64_t seek(uint8_t c, uint64_t limit) { uint64_t travel_distance = 0; while (!at_end() && next_byte() != c && travel_distance < limit) { - move_forward(); + (*this)++; travel_distance++; } return travel_distance; @@ -157,7 +157,7 @@ struct Point { uint64_t rseek(uint8_t c, uint64_t limit) { uint64_t travel_distance = 0; while (!at_start() && prev_byte() != c && travel_distance < limit) { - move_backward(); + (*this)--; travel_distance++; } return travel_distance; |