cli-remote-agent 1.0.11 → 1.0.12
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/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -473,7 +473,7 @@ async function killTmuxSession(name) {
|
|
|
473
473
|
async function scrollTmux(name, direction) {
|
|
474
474
|
const bin = resolveTmuxPath();
|
|
475
475
|
if (!bin) return { inCopyMode: false };
|
|
476
|
-
const target =
|
|
476
|
+
const target = name;
|
|
477
477
|
const run = (args) => execFileAsync2(bin, args, { timeout: 4e3 }).catch(() => {
|
|
478
478
|
});
|
|
479
479
|
const inMode = async () => {
|
|
@@ -489,7 +489,7 @@ async function scrollTmux(name, direction) {
|
|
|
489
489
|
return { inCopyMode: false };
|
|
490
490
|
}
|
|
491
491
|
if (direction === "up") {
|
|
492
|
-
await run(["copy-mode", "-t", target]);
|
|
492
|
+
if (!await inMode()) await run(["copy-mode", "-t", target]);
|
|
493
493
|
await run(["send-keys", "-t", target, "-X", "halfpage-up"]);
|
|
494
494
|
return { inCopyMode: true };
|
|
495
495
|
}
|