[gtksourceview] Correctly remove matching bracket tag from text
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Correctly remove matching bracket tag from text
- Date: Mon, 10 May 2010 22:24:39 +0000 (UTC)
commit 5e8dd2865754c0c0034858812703dc54364ac364
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Tue May 11 00:24:14 2010 +0200
Correctly remove matching bracket tag from text
gtksourceview/gtksourcebuffer.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 5d6f90a..6d3e74a 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -781,19 +781,13 @@ gtk_source_buffer_move_cursor (GtkTextBuffer *buffer,
&iter1,
GTK_SOURCE_BUFFER (buffer)->priv->bracket_mark_match);
- iter2 = iter1;
- gtk_text_iter_forward_char (&iter2);
- gtk_text_buffer_remove_tag (buffer,
- GTK_SOURCE_BUFFER (buffer)->priv->bracket_match_tag,
- &iter1,
- &iter2);
-
gtk_text_buffer_get_iter_at_mark (buffer,
- &iter1,
+ &iter2,
GTK_SOURCE_BUFFER (buffer)->priv->bracket_mark_cursor);
- iter2 = iter1;
+ gtk_text_iter_order (&iter1, &iter2);
gtk_text_iter_forward_char (&iter2);
+
gtk_text_buffer_remove_tag (buffer,
GTK_SOURCE_BUFFER (buffer)->priv->bracket_match_tag,
&iter1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]