[anjuta-extras] scintilla: Apparently sourceview doesn't change the iterator when inserting text now



commit e926c89d7eb038e4d8486b293f102e4ac498b0fa
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Tue Jun 8 22:46:11 2010 +0200

    scintilla: Apparently sourceview doesn't change the iterator when inserting text now

 plugins/scintilla/text_editor.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/plugins/scintilla/text_editor.c b/plugins/scintilla/text_editor.c
index 45383e8..93e1047 100644
--- a/plugins/scintilla/text_editor.c
+++ b/plugins/scintilla/text_editor.c
@@ -2451,13 +2451,6 @@ itext_editor_insert (IAnjutaEditor *editor, IAnjutaIterable *position,
 	aneditor_command (TEXT_EDITOR(editor)->editor_id, ANE_INSERTTEXT,
 		pos, (long)text_to_insert);
 
-	/* Move the cursor and the iterator at the end of the insert text like
-	 * GtkSourceView */
-	pos += length;
-	text_editor_cell_set_position (TEXT_EDITOR_CELL (position), pos);
-	scintilla_send_message (SCINTILLA(TEXT_EDITOR (editor)->scintilla),
-			SCI_SETSEL, pos, pos);
-
 	g_free (text_to_insert);
 }
 



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