Skip to content

Commit

Permalink
fix wrapping at bottom of pane (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjanse authored Mar 8, 2021
1 parent e2945b0 commit bba2ff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vterm/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ func (v *VTerm) putChar(ch rune, wide bool) {

if v.Cursor.X >= v.w-rWidth+1 {
v.setCursorX(0)
if v.Cursor.Y < v.scrollingRegion.bottom {
if v.Cursor.Y < v.scrollingRegion.bottom-1 {
v.shiftCursorY(1)
} else {
v.scrollUp(1)
}
}

Expand Down

0 comments on commit bba2ff2

Please sign in to comment.