From 2d01e64d66c1b18e0a1bac7d2be6f0a15058741a Mon Sep 17 00:00:00 2001 From: Marius Rak Date: Wed, 16 Dec 2020 16:17:47 +0100 Subject: [PATCH 1/2] Resize windows flag escape --- lib/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.js b/lib/commands.js index 4e9800a..2e88703 100644 --- a/lib/commands.js +++ b/lib/commands.js @@ -71,7 +71,7 @@ function getResizeFlag(flag) { return ''; } - return flag === '^' ? flag : '\\' + flag; + return flag === '^' ? (process.platform === 'win32' ? flag+flag : flag) : '\\' + flag; } function pipeOrPath(obj, format) { From f38f8055ae9d9cffc9787e04f0c47b66906d9784 Mon Sep 17 00:00:00 2001 From: Marius Rak Date: Thu, 17 Dec 2020 22:03:44 +0100 Subject: [PATCH 2/2] Linting fixed --- lib/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.js b/lib/commands.js index 2e88703..c1721d9 100644 --- a/lib/commands.js +++ b/lib/commands.js @@ -71,7 +71,7 @@ function getResizeFlag(flag) { return ''; } - return flag === '^' ? (process.platform === 'win32' ? flag+flag : flag) : '\\' + flag; + return flag === '^' ? (process.platform === 'win32' ? flag + flag : flag) : '\\' + flag; } function pipeOrPath(obj, format) {