[gnome-builder] git: avoid added color flicker when opening buffer



commit 27f1291d86dea924ea170c75a21073e0b8c1483d
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 22 15:34:31 2019 -0700

    git: avoid added color flicker when opening buffer
    
    We try to always keep a cache around, so this shouldn't be necessary.

 src/plugins/git/gbp-git-buffer-change-monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/git/gbp-git-buffer-change-monitor.c b/src/plugins/git/gbp-git-buffer-change-monitor.c
index 5a92f7f6a..2f41fdf86 100644
--- a/src/plugins/git/gbp-git-buffer-change-monitor.c
+++ b/src/plugins/git/gbp-git-buffer-change-monitor.c
@@ -286,7 +286,7 @@ gbp_git_buffer_change_monitor_foreach_change (IdeBufferChangeMonitor
   if (self->cache == NULL)
     {
       for (guint i = begin_line; i < end_line; i++)
-        callback (i, IDE_BUFFER_LINE_CHANGE_ADDED, user_data);
+        callback (i, IDE_BUFFER_LINE_CHANGE_NONE, user_data);
       return;
     }
 


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