Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle -1 from wcwidth (e.g. newline) (#402)
- Only try to find width of last line of prompt. - Handle -1 from wcwidth by returning number of bytes in prompt. - Does not handle newline inside of escape characters. Addresses #394 - Add tests for control characters in prompt See #402 (comment) and #394 (comment) for discussion.
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 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