[gnome-builder] plugins/copyright: actually break out of loop on failure



commit 653ef18051978d7bdc2ca207dbd2abebdc1ff860
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 6 14:03:52 2022 -0700

    plugins/copyright: actually break out of loop on failure
    
    Fixes #1782

 src/plugins/copyright/gbp-copyright-buffer-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/copyright/gbp-copyright-buffer-addin.c 
b/src/plugins/copyright/gbp-copyright-buffer-addin.c
index eb6c3ce8b..502dd8d96 100644
--- a/src/plugins/copyright/gbp-copyright-buffer-addin.c
+++ b/src/plugins/copyright/gbp-copyright-buffer-addin.c
@@ -83,7 +83,7 @@ gbp_copyright_buffer_addin_save_file (IdeBufferAddin *addin,
       g_autofree char *replace = NULL;
 
       if (!gtk_text_iter_forward_search (&iter, name, GTK_TEXT_SEARCH_TEXT_ONLY, &match_begin, &match_end, 
&limit))
-        continue;
+        break;
 
       gtk_text_iter_set_line_offset (&match_begin, 0);
       if (!gtk_text_iter_ends_line (&match_end))


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