Set bindings based on options

This is instead of hard-coding a call to SetDefaultWindowsBindings().
This commit is contained in:
Andrew Schwartzmeyer
2016-07-15 13:39:29 -07:00
parent ab83e00475
commit b3ef98036d
@@ -485,8 +485,6 @@ namespace Microsoft.PowerShell
_console = new ConhostConsole();
#endif
SetDefaultWindowsBindings();
_buffer = new StringBuilder(8 * 1024);
_statusBuffer = new StringBuilder(256);
_savedCurrentLine = new HistoryItem();
@@ -516,6 +514,7 @@ namespace Microsoft.PowerShell
hostName = "PSReadline";
}
_options = new PSConsoleReadlineOptions(hostName);
SetDefaultBindings(_options.EditMode);
}
private void Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)