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/cli.js
CHANGED
|
@@ -661,7 +661,7 @@ async function killTmuxSession(name) {
|
|
|
661
661
|
async function scrollTmux(name, direction) {
|
|
662
662
|
const bin = resolveTmuxPath();
|
|
663
663
|
if (!bin) return { inCopyMode: false };
|
|
664
|
-
const target =
|
|
664
|
+
const target = name;
|
|
665
665
|
const run = (args) => execFileAsync2(bin, args, { timeout: 4e3 }).catch(() => {
|
|
666
666
|
});
|
|
667
667
|
const inMode = async () => {
|
|
@@ -677,7 +677,7 @@ async function scrollTmux(name, direction) {
|
|
|
677
677
|
return { inCopyMode: false };
|
|
678
678
|
}
|
|
679
679
|
if (direction === "up") {
|
|
680
|
-
await run(["copy-mode", "-t", target]);
|
|
680
|
+
if (!await inMode()) await run(["copy-mode", "-t", target]);
|
|
681
681
|
await run(["send-keys", "-t", target, "-X", "halfpage-up"]);
|
|
682
682
|
return { inCopyMode: true };
|
|
683
683
|
}
|