From 2a58c0bbe20e4e31e68f826fa0197deb7ea91f9a Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sat, 20 Oct 2018 18:45:59 +0200 Subject: app-editors/leafpad: Fix truncation bug (#657462 by Alexander Kurakin) Closes: https://bugs.gentoo.org/657462 Signed-off-by: Pacho Ramos Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- .../leafpad/files/leafpad-0.8.18.1-truncate.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch (limited to 'app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch') diff --git a/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch b/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch new file mode 100644 index 000000000000..872792199c80 --- /dev/null +++ b/app-editors/leafpad/files/leafpad-0.8.18.1-truncate.patch @@ -0,0 +1,20 @@ +diff --git a/src/file.c b/src/file.c +index 5e44a43..4c90a37 100644 +--- a/src/file.c ++++ b/src/file.c +@@ -190,6 +190,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi) + gtk_text_buffer_get_start_iter(buffer, &start); + gtk_text_buffer_get_end_iter(buffer, &end); + str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); ++ gtk_text_buffer_set_modified(buffer, FALSE); + + switch (fi->lineend) { + case CR: +@@ -229,7 +230,6 @@ gint file_save_real(GtkWidget *view, FileInfo *fi) + return -1; + } + +- gtk_text_buffer_set_modified(buffer, FALSE); + fclose(fp); + g_free(cstr); + -- cgit v1.2.3-65-gdbad