mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
docs(web): RIS leaves the reading-row marker alive (#814)
- In xterm 6 only ESC[3J (and a trim) disposes the marker; RIS swaps in a new buffer and leaves it on its old line, which is the same index as the fallback. The flushPendingWrites comment and the invariants paragraph now say so.
This commit is contained in:
1 parent
e44d586f93
commit
c52137a2ec
2 files changed
+4
-2
No files matched your search
@@ -4792,9 +4792,11 @@ Object.assign(CodemanApp.prototype, {
|
||||
// reasserted. (The synchronous version passed its regression test only
|
||||
// because the test's write mock moved the viewport synchronously.)
|
||||
// A marker is disposed when its row is trimmed off a full scrollback,
|
||||
// but also when the stream itself erases scrollback (`ESC[3J`, RIS),
|
||||
// but also when the stream itself erases scrollback with `ESC[3J`,
|
||||
// which the narrow and middle strips keep. Fall back to the absolute
|
||||
// index then, as before markers, rather than sending the reader to row 0.
|
||||
// (RIS does not dispose it: xterm swaps in a new buffer and the marker
|
||||
// stays on its old line, which is the same index as this fallback.)
|
||||
const viewportY = viewportMarker && !viewportMarker.isDisposed ? viewportMarker.line : preserveViewportY;
|
||||
viewportMarker?.dispose();
|
||||
this._restoreTerminalViewport(viewportY, flushSessionId);
|
||||
|
||||
Reference in new issue
Block a user