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



commit f4a6be9db6862dfca619ace7fe9597001caa9925
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 32ad855f..55dc2712 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]