Fix teleport issue when coming back from alt buffer

This commit is contained in:
Anthony Kim
2025-08-27 20:45:52 -07:00
parent 4c0cf27cfc
commit a3ab942ea1
4 changed files with 13 additions and 0 deletions
+7
View File
@@ -148,4 +148,11 @@ export class BufferService extends Disposable implements IBufferService {
this._onScroll.fire(buffer.ydisp);
}
}
/**
* Synchronize the scroll position by firing a scroll event with the current buffer's ydisp.
*/
public syncScrollPosition(): void {
this._onScroll.fire(this.buffer.ydisp);
}
}