提交 7e1034c5 编写于 作者: A Alex Dima

Fixes #23650: do not reveal centered line in case of wrapping changes when scroll top is 0

上级 d5316b8f
......@@ -178,7 +178,11 @@ export class ViewModel extends viewEvents.ViewEventEmitter implements IViewModel
eventsCollector.emit(new viewEvents.ViewDecorationsChangedEvent());
this.decorations.onLineMappingChanged();
this.viewLayout.onFlushed(this.getLineCount());
revealPreviousCenteredModelRange = true;
if (this.viewLayout.getScrollTop() !== 0) {
// Never change the scroll position from 0 to something else...
revealPreviousCenteredModelRange = true;
}
}
if (e.readOnly) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册