In Sources/SwiftTerm/Terminal.swift, there is a variable, canScroll, defined as:
let canScroll = buffer.x >= buffer.marginLeft && buffer.x <= buffer.marginRight
But marginLeft and marginRight are only defined to something meaningful if marginMode is enabled (otherwise they're just 0 and 80, respectively).
Shouldn't this variable defined as:
let canScroll = !marginMode || (buffer.x >= buffer.marginLeft && buffer.x <= buffer.marginRight)
so that it defaults to true if marginMode is not enabled?
(This maybe a stupid question; I don't know what marginMode is and what the expected behaviour is in the terminal).
In
Sources/SwiftTerm/Terminal.swift, there is a variable,canScroll, defined as:But
marginLeftandmarginRightare only defined to something meaningful ifmarginModeis enabled (otherwise they're just 0 and 80, respectively).Shouldn't this variable defined as:
so that it defaults to
trueifmarginModeis not enabled?(This maybe a stupid question; I don't know what marginMode is and what the expected behaviour is in the terminal).