GCodeProjects / GCodeWorkShop

GCodeWorkShop is text editor for CNC programmers.
GNU Lesser General Public License v3.0
20 stars 7 forks source link

BUG: saving a file smaller than existing file doesn't truncate the file #37

Closed zmaile closed 1 month ago

zmaile commented 1 month ago

Installer: gcodeworkshop-2024-09_ubuntu-noble_amd64.deb OS: Linux Mint 22.0

When I edit a file, remove some text, and overwrite it, the file on disk does not shrink. The new file data is intact at the start of the file, however the existing contents of the end of the larger file remain.

u-235 commented 1 month ago

Hi. Thanks for the bug report. As it was checked, that bug is present on windows as well. I will try to fix it soon.

u-235 commented 1 month ago

I think the new release fixes this.