mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[terminal] IJPL-176775 Fix NPE in TerminalOutputScrollingModel
GitOrigin-RevId: 110464502e595d1bc4ff74e943ca12b5a533603c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3e14c16503
commit
fadc5cf32c
+1
-1
@@ -64,7 +64,7 @@ internal class TerminalOutputScrollingModelImpl(
|
||||
// The user has returned the scrollbar to the bottom, so we should stick to the bottom again.
|
||||
shouldScrollToCursor = true
|
||||
}
|
||||
else if (e.oldRectangle.y != e.newRectangle.y) {
|
||||
else if (e.oldRectangle != null && e.oldRectangle.y != e.newRectangle.y) {
|
||||
// The user has changed the scroll offset, so we should stop following the cursor.
|
||||
shouldScrollToCursor = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user