summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/buffer.cpp b/buffer.cpp
index afb1c93..05bbffa 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -63,6 +63,7 @@ void Buffer::handleCommand(const Command &cmd){
cursor.x=tb.lineLen(cursor.line);
tb.erase(cursor.line,cursor.x);
}
+ relayoutScreen();
if(findCursorInScreen().x==-1){
scrollUp();
} else {