mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
Keep the unsent draft out of slash-command keys; settle the iOS owner without flushing local echo. Restore the overlay last-prompt fallback and the #520 Shift/Ctrl+Enter gate guard. Pin the xterm privates the iOS owner needs; retarget browser/mobile harnesses to the session FIFO edge. Document the session FIFO invariants and link #830 for the device sequences.
This commit is contained in:
1 parent
c4b382b727
commit
db5ab5a701
11 files changed
+128
-53
No files matched your search
@@ -640,7 +640,7 @@ export class ZerolagInputAddon implements XtermAddon {
|
||||
} else {
|
||||
this._lastPromptPos = prompt;
|
||||
}
|
||||
} else {
|
||||
} else if (!this._lastPromptPos) {
|
||||
this._overlay.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -950,13 +950,15 @@ describe('input end anchor and layout subscriptions', () => {
|
||||
expect(addon.getInputEndAnchor()).toBeNull();
|
||||
});
|
||||
|
||||
it('returns null when a previously visible prompt is no longer found', () => {
|
||||
it('keeps painting at the last prompt when a redraw briefly hides the prompt marker', () => {
|
||||
const { addon, mock } = layoutSetup();
|
||||
addon.appendText('abc');
|
||||
const before = addon.getInputEndAnchor();
|
||||
expect(before).not.toBeNull();
|
||||
mock.setLines(['output without a prompt']);
|
||||
addon.rerender();
|
||||
expect(addon.getInputEndAnchor()).toBeNull();
|
||||
expect(addon.state.visible).toBe(false);
|
||||
expect(addon.state.visible).toBe(true);
|
||||
expect(addon.getInputEndAnchor()).toEqual(before);
|
||||
});
|
||||
|
||||
it('publishes null on a scroll hide before repainting', () => {
|
||||
|
||||
Reference in new issue
Block a user