forked from ilai-deutel/kibi
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nonprintable characters rendering
I added a new field for Editor struct 'non_printable' that changes the way rows are rendered (using CTRL+P). During testing, I found out that Kibi has a little bug when starting a new editor, because it adds a newline from the start on line 2, even though there is nothing and the user did not insert a new line. This can be shown by using the key bind above, I will look into it. The whitespaces are now rendered as '·', new line is now rendered as '␊' (and it doesn't affect the normal characters of the row), tab is now rendered as a '├──┤' of different lenghts. Other control characters can be found in the `draw` function. I know that the number of lines is not under 1024, I tried to mess around with the fmt file, but I couldn't force it to compress some if statements that it had compressed before. I will try to refactor as much as possible, but the current line count may be too close to the limit for any other features.
- Loading branch information
Showing
5 changed files
with
78 additions
and
9 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
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