MEGA65 / mega65-rom-public

MEGA65 ROM public issue reporting
4 stars 0 forks source link

Screen editor insertion mode bug #116

Closed fredrikr closed 5 months ago

fredrikr commented 5 months ago

Test Environment (required) You can use MEGA65INFO to retrieve this.

Describe the bug If you insert characters, and type two double quotes, you're still in insertion mode. This bug is present on the C64 as well, but maybe it can be fixed on the MEGA65?

To Reproduce Type: 10 PRINT A (Enter) Use the cursor keys to up to just after PRINT on line 10. Press Shift-Insert twice. Type "" (two double quote characters) Now press cursor down. The cursor should now move to the line below, but instead you get a reverse Q.

Expected behavior I expect to leave insertion mode when I've inserted two characters and typed two characters, unless I've just typed an odd number of double quote characters.

Screenshots

Additional context

dansanderson commented 5 months ago

Interesting! I would concur that more intuitive behavior would be for quotes to not change quote mode while being typed in insert-quoted spaces, including the last one. It seems to be implemented this way except for just the edge case where the last inserted character is a quote. I can insert lots of characters and it doesn't matter how many quotes I type, I'm only in quote mode after the last one if the last one is a quote. Hopefully that means it's easy to fix.