dmsc / fastbasic

FastBasic - Fast BASIC interpreter for the Atari 8-bit computers
GNU General Public License v2.0
139 stars 20 forks source link

Editor in FB.COM: Bug when pressing Ctrl-DEL at end of sourcefile #82

Closed std-xl closed 7 months ago

std-xl commented 7 months ago

After pressing Ctrl-DEL at end of last line, strange things happen when running the program: E.g. type after starting FB.COM:

Ctrl-N ? 1 Ctrl-DEL Ctrl-R -> 1 1 is displayed

Ctrl-N A = 1 Return ? A Ctrl-DEL Ctrl-DEL Ctrl-R -> Parse Error

dmsc commented 7 months ago

Hi!

Thanks for the bug report.

When you press the DELETE key at the end of the line, the editor tries to join the line with the next - it needed a check to avoid deleting the last end of line.

Fixed now.