summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
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) {