-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix typo * Refactor prompt highlighting into RLHelper By moving the prompt coloring to be done in Highlighter::highlight_prompt, we sidestep the issue on Windows where the prompt width is calculated post-coloring AND without ignoring escape codes. By including it in the implementation of Highlighter, Editor::readline now operates on a plain-text prompt, so width calculation is correct. This commit also re-arranges the trait impl order to match the definition.
- Loading branch information
1 parent
8cbeb00
commit 4c8bb84
Showing
3 changed files
with
29 additions
and
14 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
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