stefan-b-jakobsson / x16-edit

Text editor for Commander X16
BSD 2-Clause "Simplified" License
12 stars 3 forks source link

extra M on the first column on the first row (assuming left over ^M) #24

Closed voidstar78 closed 1 year ago

voidstar78 commented 1 year ago

While creating TEXT files with notepad++ under Windows, I then opened them with X16EDIT on the X16 system. For each file, I noticed an extra "M" on the first row of text (and only on that first row). I figure this is a left over from a ^M (new line) in handling of the CRLF stuff (i.e. it probably tries to auto-detect this, and has a little hiccup about it on the very first line of parsing).

This only happens on the first line, no extra "M"'s appear on subsequent lines.

voidstar78 commented 1 year ago

Here is an example

Note: I now think the problem is only if the first line happens to be blank. [ makes sense, maybe it doesn't know yet; and the assumption is incorrect on that first line ]

SAMPLE2.TXT

stefan-b-jakobsson commented 1 year ago

I committed code that should fix this to the master branch