Description: Ignore changes that happen during a save
 Stops Anjuta from nagging you with "file on disk is more recent" queries
 almost every time you save.
Author: Ove Kåven <ovek@arcticnet.no>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=758567

--- anjuta-3.22.0.orig/plugins/sourceview/sourceview-io.c
+++ anjuta-3.22.0/plugins/sourceview/sourceview-io.c
@@ -181,6 +181,10 @@ static void on_file_changed (GFileMonito
 			GFileInfo* info;
 			const gchar* etag;
 
+			/* Ignore changes that happen during a save. */
+			if (sio->write_buffer)
+				break;
+
 			info = g_file_query_info (file, G_FILE_ATTRIBUTE_ETAG_VALUE,
 			                          G_FILE_QUERY_INFO_NONE, NULL, NULL);
 			if (!info)
