@oxecli/oxe 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.js +10 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -1139,11 +1139,20 @@ export function askBottomPrompt(label = "You", prefix = "❯", history = []) {
|
|
|
1139
1139
|
pasteBurstTimer = setTimeout(() => {
|
|
1140
1140
|
pasteBurst = false;
|
|
1141
1141
|
pasteBurstTimer = null;
|
|
1142
|
-
},
|
|
1142
|
+
}, 500);
|
|
1143
1143
|
};
|
|
1144
1144
|
const onKeypress = (str, key) => {
|
|
1145
1145
|
if (consumeBracketedPaste(str, key))
|
|
1146
1146
|
return;
|
|
1147
|
+
// A normal typed character after an unbracketed paste ends the fallback
|
|
1148
|
+
// window, so the next Enter can submit immediately. Multi-character
|
|
1149
|
+
// clipboard chunks keep the window alive until their rows arrive.
|
|
1150
|
+
if (pasteBurst && str && str.length === 1 && !key?.ctrl && !key?.meta) {
|
|
1151
|
+
pasteBurst = false;
|
|
1152
|
+
if (pasteBurstTimer)
|
|
1153
|
+
clearTimeout(pasteBurstTimer);
|
|
1154
|
+
pasteBurstTimer = null;
|
|
1155
|
+
}
|
|
1147
1156
|
if (key && key.ctrl && key.name === "c") {
|
|
1148
1157
|
settle(new Error("interrupt"), true);
|
|
1149
1158
|
return;
|