dykstrom / basic-mode

Emacs major mode for editing BASIC code
GNU General Public License v3.0
7 stars 10 forks source link

Auto-number gets confused by digits after point #14

Closed hackerb9 closed 1 year ago

hackerb9 commented 2 years ago

With auto-number turned on, pressing enter when there are digits at and after the cursor point, merges the newly created line number and the number after point.

For example, given this file:

10 REM Copylefted (ↄ) 2022.
                      ^
20 REM All wrongs reversed.

Hitting enter while the cursor is flashing on the first digit of 2022 will result in this:

10 REM Copylefted (ↄ)                                                   
152022 .                                                             
       ^                                                             
20 REM All wrongs reversed.                                              

It should have put a space before 2022, not after. And the point should be left on the first digit of 2022, not on the period.

dykstrom commented 1 year ago

Fixed in version 0.4.6.