[gtksourceview/wip/chergert/gsv-gtk4: 174/192] gutterrendererlines: fix check for cursor line




commit 01886f058b415931bf2f3c24f588ccfebca30cd5
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 17 14:33:48 2020 -0700

    gutterrendererlines: fix check for cursor line

 gtksourceview/gtksourcegutterrendererlines.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcegutterrendererlines.c b/gtksourceview/gtksourcegutterrendererlines.c
index 32ad855f5..55dc27124 100644
--- a/gtksourceview/gtksourcegutterrendererlines.c
+++ b/gtksourceview/gtksourcegutterrendererlines.c
@@ -401,7 +401,7 @@ gutter_renderer_snapshot_line (GtkSourceGutterRenderer *renderer,
        g_assert (GTK_IS_SNAPSHOT (snapshot));
        g_assert (GTK_SOURCE_IS_GUTTER_LINES (lines));
 
-       if G_LIKELY (gtk_source_gutter_lines_is_cursor (lines, line))
+       if G_LIKELY (!gtk_source_gutter_lines_is_cursor (lines, line))
        {
                GTK_SOURCE_GUTTER_RENDERER_CLASS 
(_gtk_source_gutter_renderer_lines_parent_class)->snapshot_line (renderer, snapshot, lines, line);
        }


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