[gtksourceview/wip/chergert/snippets] fix text re-insertion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/snippets] fix text re-insertion
- Date: Fri, 24 Jan 2020 22:55:28 +0000 (UTC)
commit 6482185203f3d6d519f53642e028c0037d395cb4
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 24 14:34:59 2020 -0800
fix text re-insertion
gtksourceview/gtksourcesnippet.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcesnippet.c b/gtksourceview/gtksourcesnippet.c
index bc490551..bc5dd5e8 100644
--- a/gtksourceview/gtksourcesnippet.c
+++ b/gtksourceview/gtksourcesnippet.c
@@ -469,8 +469,6 @@ _gtk_source_snippet_move_next (GtkSourceSnippet *snippet)
g_return_val_if_fail (GTK_SOURCE_IS_SNIPPET (snippet), FALSE);
- print_chunk_positions (snippet);
-
snippet->focus_position++;
for (const GList *l = snippet->chunks.head; l; l = l->next)
@@ -698,8 +696,6 @@ _gtk_source_snippet_begin (GtkSourceSnippet *snippet,
gtk_source_snippet_update_tags (snippet);
- print_chunk_positions (snippet);
-
return _gtk_source_snippet_move_next (snippet);
}
@@ -872,7 +868,7 @@ gtk_source_snippet_rewrite_updated_chunks (GtkSourceSnippet *snippet)
if (g_strcmp0 (text, real_text) != 0)
{
gtk_text_buffer_delete (snippet->buffer, &begin, &end);
- gtk_text_buffer_insert (snippet->buffer, &begin, real_text, -1);
+ gtk_text_buffer_insert (snippet->buffer, &begin, text, -1);
gtk_source_snippet_update_marks (snippet);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]