Akira-Hayasaka / ofxGLEditor

Script editor for oF Live Coding
GNU General Public License v2.0
100 stars 16 forks source link

End key moves cursor before the last character instead of *after* when it's on the last line #16

Closed munshkr closed 9 years ago

munshkr commented 9 years ago

If the cursor is on any other line except the last one, End key works OK. When the cursor is on the last line (or there is only one line), End key moves the cursor to the last character, but not after it. If you start writing, it writes everything before the last char.

screenshot from 2015-04-03 11 57 14 screenshot from 2015-04-03 11 58 23

Also, if the cursor is at the end, and you press Down to get to the last line, it moves before the last character too, so maybe the bug is not on the "End key handler" itself.

danomatika commented 9 years ago

Not surprising. I find I've been fixing a lot of little bigs like this form the original Fluxus implementation. Can you double check all the other cursor movement keys? I fixed page up/page down a few days ago, but I didn't test home and end.

munshkr commented 9 years ago

Yeah, I've seen the fixes about scrolling, great work! It looks much better.

I haven't bumped into other movement-related bugs for now, but I'll let you know. I'll also see if I can investigate further about this one.