reflow: move cursor line when horizontally expanding

This commit is contained in:
Boris Faure 2013-03-23 23:18:56 +01:00
parent 25928a31b4
commit f810600875
1 changed files with 5 additions and 0 deletions

View File

@ -707,6 +707,11 @@ expand_screen:
}
}
}
if (y < old_h)
{
ty->state.cy -= old_h - y;
if (ty->state.cy < 0) ty->state.cy = 0;
}
#undef OLD_SCREEN
}