bte
bte copied to clipboard
Cursor doesn't reach end of line
Holding <right>
doesn't make the cursor reach the last character.
Every line has a different column nr. that bte handles as end of line.
Hitting keys does cause the corresponding character to be inserted into the buffer, but apparently not under the cursor.
It seems that the actual cursor and the visible cursor are at different column indexes.
Terminal: Alacritty
Sorry for the late reply Thank you creating an issue :') I ended up finding a few more problems with my code
Could you explain what you mean the cursor doesn't reach the end of the line. I cant seem to replicate this behavior Could you send me an example file in which you found this problem.
This is with the current master branch
All I'm doing is press <right>
i am able to replicate this behaviour i'll see what i can do
I found out why it does that Damn horizontal tab printf prints out 4 spaces because of it ;-;
I've made a temporary fix in the branch bugfix/cursor_movement Have a look
This seems to have fixed it.
But tabs are displayed like <TAB>
I'm trying to find a better fix. This is just a temporary fix
Adding <TAB>
anywhere in the code will transform it into a horizontal tab
Hey @EmmChriss can you test the bte binary in this branch
tab : inserts special tab instead of for spaces
The editing works fine, but not sure if the T
with red background is the intended tab character.
yeah it's the tab character. I'm sorry for not mentioning it.
If you can associate multiple characters with a single one when displaying it, I think you should make a global constant for now, that specifies how many spaces a tab character means.
Right now the red background T signifies the special character \t
not 4 spaces or 8. But let me see what i can do
Yo o/
I'm gonna work on the line editing of the text.
I hope it fixes the tab bug. :D