diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-06-03 22:18:26 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-06-03 22:18:26 -0300 |
commit | 74f957ef54a912b9396232fb3b0bb8c8c47bf5f7 (patch) | |
tree | 096a6fb921c28fd2f7453615fe0339d855f439c4 /buffer.cpp | |
parent | 7c82e7dffeb734ca4b4261109ac936f41e7e6538 (diff) | |
download | jet-74f957ef54a912b9396232fb3b0bb8c8c47bf5f7.tar.gz jet-74f957ef54a912b9396232fb3b0bb8c8c47bf5f7.zip |
Separate pop into byte and element variants
Diffstat (limited to 'buffer.cpp')
-rw-r--r-- | buffer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -7,11 +7,7 @@ struct Buffer { void prev_line(int window_width) { cursor--; - cursor--; - cursor.rseek('\n', window_width - 2); - if (cursor.element() == '\n') { - cursor++; - } + cursor.rseek('\n', window_width - 1); } void next_line(int window_width) { |