Problem in implementing cursor motion in text editor
Not a long time ago, I decided to learn zig and write my first text editor. However, I came across an issue where the UP
and DOWN
arrow keys don’t work as expected. I’ve tried many different variations of the implementation, but none of them worked as intended.
Here’s my text editor: