mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Set bindings based on options
This is instead of hard-coding a call to SetDefaultWindowsBindings().
This commit is contained in:
1 parent
ab83e00475
commit
b3ef98036d
1 file changed
+1
-2
@@ -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