-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store IO gate in
Config
and avoid referencing the Reline::IOGate
…
…directly IO gate is a component that's widely used in Reline. However, it's not supposed to be assigned right when `Reline` is loaded, which has been causing problems described in #559 And the need to lazily assign it when `readline`/`readmultiline` being called means it should not be a constant but an attribute of either `Core` or `Config`. Since it's widely used in `LineEditor`, I think making it an attribute of `Config` is better than `Core`. Note: - The goal is to drop the `Reline::IOGate` constant completely. But I want to avoid making breaking change here as it's supposed to be a refactoring.
- Loading branch information
Showing
12 changed files
with
108 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.