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.

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:
fclose(fp);
gtk_text_buffer_set_modified(buffer, FALSE);

Is this still logically correct??
I suspect there is some issue between GVFS and gtk_text_buffer_set_modified.

Reply via email to