From 71dcfb7890f2ebf9b3cdcfcf502521603148b87f Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Fri, 27 Jan 2017 07:21:56 +0100 Subject: [PATCH] fix TERMINAL_DEFAULT_FLOW_CONTROL properly --- src/vs/workbench/parts/terminal/electron-browser/terminal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts index dbc5b9d6a7f..91ba83ca066 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts @@ -22,7 +22,7 @@ export const TERMINAL_DEFAULT_SHELL_WINDOWS = isAtLeastWindows10 ? powerShellPat // Terminal flow control is disabled if the shell is zsh since the popular oh-my-zsh configuration // overrides the ^S and ^Q keybindings which are used for flow control. // TODO: This should check if ~/.oh-my-zsh exists as well -export const TERMINAL_DEFAULT_FLOW_CONTROL = typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) !== 'zsh'; +export const TERMINAL_DEFAULT_FLOW_CONTROL = !(typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) === 'zsh'); export interface ITerminalProcessFactory { create(env: { [key: string]: string }): cp.ChildProcess;