[gnome-builder] auto-indent: ensure we update iter to search location
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] auto-indent: ensure we update iter to search location
- Date: Fri, 17 Oct 2014 06:24:23 +0000 (UTC)
commit 77a49c5ad94824dc2712eaef5dbc14d9fd95af4d
Author: Christian Hergert <christian hergert me>
Date: Thu Oct 16 23:24:14 2014 -0700
auto-indent: ensure we update iter to search location
src/auto-indent/gb-source-auto-indenter-c.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/auto-indent/gb-source-auto-indenter-c.c b/src/auto-indent/gb-source-auto-indenter-c.c
index 364164c..b1dbe36 100644
--- a/src/auto-indent/gb-source-auto-indenter-c.c
+++ b/src/auto-indent/gb-source-auto-indenter-c.c
@@ -474,7 +474,7 @@ in_c89_comment (const GtkTextIter *location,
if (!gtk_text_iter_forward_chars (&iter, 2) ||
!gtk_text_iter_forward_search (&iter, "*/",
GTK_TEXT_SEARCH_TEXT_ONLY,
- NULL, NULL, NULL) ||
+ NULL, &iter, NULL) ||
(gtk_text_iter_compare (&iter, location) > 0))
{
*match_begin = saved;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]