I am working on windows system from external editor (sublime text 3) with text based cart (.lua). When I am saving via ST3 (and reloading with ctrl+r in tic80) everything stays the same, but whenever I change something in tic80 (like graphic or map) and save it there every code bank from 1 to 7 gets duplicated, making my file size almost twice as big. It is easy to reproduce this, but can provide my file in private message if needed.
Create text based file in TIC-80.
Write random comments in every code bank and save file.
Open file in external edtor, save it there and reload file in TIC-80.
Change graphic in TIC-80 and save file in TIC-80
Reload file in external editor
EDIT: It looks like it is related to the fact, that whenever you reload file saved in external editor all banks are loaded into bank 0,in pair with loading each bank separately. Dunno why. So this also makes 512k code limit unavailible as TIC80 will fail if sum of code from banks 1-7 gets bigger than 64k.
EDIT2: Already reported, just found out: https://github.com/nesbox/TIC-80/issues/516