[gnome-builder] editor: reset saved cursor position when navigating search results
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor: reset saved cursor position when navigating search results
- Date: Thu, 22 Jan 2015 22:02:44 +0000 (UTC)
commit 0faeb61aa40051fb08769c108780c681dfe1dd4f
Author: Christian Hergert <christian hergert me>
Date: Thu Jan 22 13:56:36 2015 -0800
editor: reset saved cursor position when navigating search results
https://bugzilla.gnome.org/show_bug.cgi?id=743357
src/editor/gb-editor-frame.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index 29f8484..e1452d7 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -177,6 +177,7 @@ gb_editor_frame_move_next_match (GbEditorFrame *self,
EXIT;
found_match:
+ gb_source_view_clear_saved_cursor (priv->source_view);
gtk_text_buffer_select_range (GTK_TEXT_BUFFER (priv->document),
&match_begin, &match_end);
@@ -230,6 +231,7 @@ gb_editor_frame_move_previous_match (GbEditorFrame *self)
EXIT;
found_match:
+ gb_source_view_clear_saved_cursor (priv->source_view);
gtk_text_buffer_select_range (GTK_TEXT_BUFFER (priv->document),
&match_begin, &match_end);
gb_gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (priv->source_view),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]