changeset 647:f6a2a3f5734d

[gaim-migrate @ 657] thank you GrsdLtning, and let's hope this doesn't break everyone elses' systems :) committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Wed, 09 Aug 2000 03:52:30 +0000
parents 83c773b5b6dc
children 07165959309b
files src/conversation.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Wed Aug 09 01:57:19 2000 +0000
+++ b/src/conversation.c	Wed Aug 09 03:52:30 2000 +0000
@@ -802,9 +802,9 @@
 		gtk_editable_select_region(GTK_EDITABLE(entry), start, finish + strlen(pre) + strlen(post));
 	} else {
 		gtk_editable_insert_text(GTK_EDITABLE(entry), pre, strlen(pre), &pos);
-		dummy = pos;
+		dummy = pos + strlen(pre);
 		gtk_editable_insert_text(GTK_EDITABLE(entry), post, strlen(post), &dummy);
-		gtk_editable_set_position(GTK_EDITABLE(entry), pos);
+		gtk_editable_set_position(GTK_EDITABLE(entry), dummy);
 	}
 	gtk_widget_grab_focus(entry);
 }