I confirmed this happens on SFTP connections as well as SMB, and seems to only occur on text files less than 4096 bytes. Yes this is a dangerous bug - I was just lucky to notice before losing important notes.
If you reverse lines 232 & 233 in src/file.c so that it becomes:
fclose(fp);
gtk_text_buffer_set_modified(buffer, FALSE);
and recompile it seems to fix the bug - the files save correctly.
I confirmed this happens on SFTP connections as well as SMB, and seems to only occur on text files less than 4096 bytes. Yes this is a dangerous bug - I was just lucky to notice before losing important notes.
If you reverse lines 232 & 233 in src/file.c so that it becomes: buffer_ set_modified( buffer, FALSE);
fclose(fp);
gtk_text_
and recompile it seems to fix the bug - the files save correctly.