mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Set bindings based on options
This is instead of hard-coding a call to SetDefaultWindowsBindings().
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user