Commit 9d041222 authored by Carlos Alves's avatar Carlos Alves
Browse files

Fix ReFlow bug while Splitting View

History content was changing when splitting the view.
parent 41b8f742
......@@ -435,7 +435,7 @@ void Screen::resizeImage(int new_lines, int new_columns)
_isResize = true;
int cursorLine = getCursorLine();
const int oldCursorLine = (cursorLine == _lines - 1) ? new_lines - 1 : cursorLine;
const int oldCursorLine = (cursorLine == _lines - 1 || cursorLine > new_lines - 1) ? new_lines - 1 : cursorLine;
// Check if _history need to change
if (_enableReflowLines && new_columns != _columns && _history->getLines() && _history->getMaxLines()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment