Today I worked on splitting the huge “handle_keypress” function into two separate functions: one to add/delete characters and another to format the lines. Now the “handle_keypress” function only handles adding/deleting characters and the “format_text” function will clean up after it. The editor feels a lot less like a pile of if-statements now! xD
It also finally supports the character juggling I talked about before.
Your data is processed in accordance with my privacy policy. Comments are manually approved and may take a while to appear.