OCaml 4.13.1 rebuild
[arch-packages.git] / leafpad / trunk / 0001-truncate.patch
blob872792199c809bf667825eb6651023cbbf1062e7
1 diff --git a/src/file.c b/src/file.c
2 index 5e44a43..4c90a37 100644
3 --- a/src/file.c
4 +++ b/src/file.c
5 @@ -190,6 +190,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
6 gtk_text_buffer_get_start_iter(buffer, &start);
7 gtk_text_buffer_get_end_iter(buffer, &end);
8 str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
9 + gtk_text_buffer_set_modified(buffer, FALSE);
11 switch (fi->lineend) {
12 case CR:
13 @@ -229,7 +230,6 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
14 return -1;
17 - gtk_text_buffer_set_modified(buffer, FALSE);
18 fclose(fp);
19 g_free(cstr);