util: Fix off-by-one in calls_entry_append
Append after the last character rather than insert before it. Closes #70
This commit is contained in:
@@ -83,5 +83,5 @@ calls_entry_append (GtkEntry *entry,
|
|||||||
buf = gtk_entry_get_buffer (entry);
|
buf = gtk_entry_get_buffer (entry);
|
||||||
len = gtk_entry_buffer_get_length (buf);
|
len = gtk_entry_buffer_get_length (buf);
|
||||||
|
|
||||||
gtk_entry_buffer_insert_text (buf, len - 1, str, 1);
|
gtk_entry_buffer_insert_text (buf, len, str, 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user