[gnome-text-editor] document: do not reapply tag on changes



commit f3b151bd192e8edf2139ce6f63e5e6ea4bdd4eab
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jul 15 12:28:00 2021 -0700

    document: do not reapply tag on changes
    
    This isn't needed because the tags should alwas get extended since they
    are the beginning and end of the document. Also, doing this from changed
    caused a significant amount of overhead when loading large files (in the
    500,000 line range).

 src/editor-document.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/editor-document.c b/src/editor-document.c
index 5e3e3bc..f1d8432 100644
--- a/src/editor-document.c
+++ b/src/editor-document.c
@@ -185,8 +185,6 @@ editor_document_changed (GtkTextBuffer *buffer)
   self->needs_autosave = TRUE;
 
   GTK_TEXT_BUFFER_CLASS (editor_document_parent_class)->changed (buffer);
-
-  editor_document_apply_spacing (self);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]