diff options
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) { |