I am implementing line wrapping in my text editor, an I noticed that if the line reaches this point about 2-4 columns from the right edge, the cursor skips a space ahead of the end of the line! This even happens when I comment out the line-wrapping part.
I made it so that the arrow keys move around the cursor and again, the cursor just skips over that particular column instead of moving normally.
Note that this is happening inside an ncurses window instead of stdscr, if that helps.