remy / vscode-nextbasic

VS Code tools for NextBASIC
https://marketplace.visualstudio.com/items?itemName=remysharp.nextbasic
9 stars 1 forks source link

Enter at the end of line not working properly #16

Closed kounch closed 4 years ago

kounch commented 4 years ago

On MacOS, using ENTER at the end of a line with several statements and without spaces truncates the line instead of creating a new empty one.

E.g.: 80 LAYER CLEAR:SPRITE CLEAR:PALETTE CLEAR:PAPER tinta:BORDER tinta:INK papel:CLS

Becomes

80 LAYER CLEAR : SPRITE CLEAR : PALETTE CLEAR : PAPER tinta: BORDER tinta: INK pap
90 el: CLS

instead of

80 LAYER CLEAR : SPRITE CLEAR : PALETTE CLEAR : PAPER tinta: BORDER tinta: INK papel: CLS
90

(see attached video)

EnterError.mp4.zip

remy commented 4 years ago

Cheers - I knew this was a bug, I kept seeing it, but then hurrying on to do the next thing.

I'm pretty sure it's formatting the line during keypress, so the return insert appears in a different position (ie. I need to fix this)!