Fix teleport issue when coming back from alt buffer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface IBufferService {
|
||||
onScroll: Event<number>;
|
||||
scroll(eraseAttr: IAttributeData, isWrapped?: boolean): void;
|
||||
scrollLines(disp: number, suppressScrollEvent?: boolean): void;
|
||||
syncScrollPosition(): void;
|
||||
resize(cols: number, rows: number): void;
|
||||
reset(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user