summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-06-03 22:18:26 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-06-03 22:18:26 -0300
commit74f957ef54a912b9396232fb3b0bb8c8c47bf5f7 (patch)
tree096a6fb921c28fd2f7453615fe0339d855f439c4 /buffer.cpp
parent7c82e7dffeb734ca4b4261109ac936f41e7e6538 (diff)
downloadjet-74f957ef54a912b9396232fb3b0bb8c8c47bf5f7.tar.gz
jet-74f957ef54a912b9396232fb3b0bb8c8c47bf5f7.zip
Separate pop into byte and element variants
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/buffer.cpp b/buffer.cpp
index 027ffca..9313380 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -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) {