mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-10 01:09:43 +02:00
docs: correct the rewrite-anchor comment now that refresh pulls full history
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -851,10 +851,11 @@ function computeHistoryTruncationNotice(state = {}) {
|
|||||||
/**
|
/**
|
||||||
* Where to land after a rewrite that REPLACES the whole buffer (#259).
|
* Where to land after a rewrite that REPLACES the whole buffer (#259).
|
||||||
*
|
*
|
||||||
* The backpressure refresh clears and reloads the terminal from a fresh tail,
|
* The backpressure refresh clears the terminal and reloads it from a freshly
|
||||||
* so an absolute viewportY captured beforehand means nothing afterwards: the
|
* fetched capture, so an absolute viewportY captured beforehand means nothing
|
||||||
* line it pointed at may not even exist. Distance from the BOTTOM is the anchor
|
* afterwards: the line it pointed at may not even exist. Distance from the
|
||||||
* that survives a rewrite, so a reader stays roughly where they were reading.
|
* BOTTOM is the anchor that survives a rewrite, so a reader stays roughly
|
||||||
|
* where they were reading.
|
||||||
*
|
*
|
||||||
* Returns null when the user was following live output, which the caller reads
|
* Returns null when the user was following live output, which the caller reads
|
||||||
* as "scroll to bottom" — the historical behavior, kept for that case.
|
* as "scroll to bottom" — the historical behavior, kept for that case.
|
||||||
|
|||||||
Reference in New Issue
Block a user