Skip to content

Commit b3ef980

Browse files
committed
Set bindings based on options
This is instead of hard-coding a call to SetDefaultWindowsBindings().
1 parent ab83e00 commit b3ef980

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Microsoft.PowerShell.PSReadLine/ReadLine.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ private PSConsoleReadLine()
485485
_console = new ConhostConsole();
486486
#endif
487487

488-
SetDefaultWindowsBindings();
489-
490488
_buffer = new StringBuilder(8 * 1024);
491489
_statusBuffer = new StringBuilder(256);
492490
_savedCurrentLine = new HistoryItem();
@@ -516,6 +514,7 @@ private PSConsoleReadLine()
516514
hostName = "PSReadline";
517515
}
518516
_options = new PSConsoleReadlineOptions(hostName);
517+
SetDefaultBindings(_options.EditMode);
519518
}
520519

521520
private void Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)

0 commit comments

Comments
 (0)