Skip to content

Commit 3e5c6a1

Browse files
committed
Correct Windows wrapping heuristics condition
1 parent a91665c commit 3e5c6a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/CoreTerminal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
265265
private _handleWindowsPtyOptionChange(): void {
266266
let value = false;
267267
const windowsPty = this.optionsService.rawOptions.windowsPty;
268-
if (windowsPty) {
269-
value = !!(windowsPty.buildNumber && windowsPty.backend === 'conpty' && windowsPty.buildNumber < 21376);
268+
if (windowsPty && windowsPty.buildNumber !== undefined && windowsPty.buildNumber !== undefined) {
269+
value = !!(windowsPty.backend === 'conpty' && windowsPty.buildNumber < 21376);
270270
} else if (this.optionsService.rawOptions.windowsMode) {
271271
value = true;
272272
}

0 commit comments

Comments
 (0)