<div dir="ltr"><div>Trying to write a file less than 4kb with Leafpad to a SSH/SFTP or SMB share mounted through GVFS (1.24.2 release) results in a 0 byte file, no error message.</div><div><br></div><div>You can work around it by swapping lines 232 & 233 in Leafpad source file file.c to close the file before resetting the text buffer modified flag:</div><div><span class="" style="white-space:pre">  </span>fclose(fp);</div><div><span class="" style="white-space:pre">        </span>gtk_text_buffer_set_modified(buffer, FALSE);</div><div><br></div><div>Is this still logically correct??</div><div>I suspect there is some issue between GVFS and gtk_text_buffer_set_modified.</div><div><br></div></div>