mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-23 14:19:33 +01:00
chore: bump version to 0.1596
This commit is contained in:
1 parent
1a36ae15b8
commit
84c454cf40
4 files changed
+11
-5
No files matched your search
@@ -961,6 +961,10 @@ class LocalEchoOverlay {
|
||||
// other case where the PTY has prompt text the overlay doesn't know about.
|
||||
// Without this, the overlay's opaque background covers the canvas text.
|
||||
_detectBufferText() {
|
||||
// Skip if we already detected and the user backspaced through it —
|
||||
// the PTY backspace echo is async, so the buffer still has stale text.
|
||||
// Reset on clear() (Enter, Ctrl+C, tab switch).
|
||||
if (this._bufferDetectDone) return;
|
||||
try {
|
||||
const prompt = this._findPrompt();
|
||||
if (!prompt) return;
|
||||
@@ -975,6 +979,7 @@ class LocalEchoOverlay {
|
||||
this._flushedOffset = afterPrompt.length;
|
||||
this._flushedText = afterPrompt;
|
||||
this._lastPromptPos = prompt;
|
||||
this._bufferDetectDone = true;
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
@@ -1017,6 +1022,7 @@ class LocalEchoOverlay {
|
||||
this.pendingText = '';
|
||||
this._flushedOffset = 0;
|
||||
this._flushedText = '';
|
||||
this._bufferDetectDone = false; // allow re-detection after next clear
|
||||
this._persist();
|
||||
this._lastRenderKey = '';
|
||||
this._lastPromptPos = null;
|
||||
|
||||
Reference in new issue
Block a user