Remove usage of deprecated sci_get_selected_text() from htmlchars plugin.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3649 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Frank Lanitz 2009-03-24 18:45:16 +00:00
parent 349d516e75
commit 10ea2cc7ba
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2009-03-24 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* plugins/htmlchars.c:
Remove usage of deprecated sci_get_selected_text() from plugin.
2009-03-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c:

View File

@ -613,8 +613,8 @@ static void replace_special_character()
if (doc != NULL && sci_has_selection(doc->editor->sci))
{
gint selection_len = sci_get_selected_text_length(doc->editor->sci);
gchar *selection = g_malloc(selection_len + 1);
gint selection_len;
gchar *selection = NULL;
GString *replacement = g_string_new(NULL);
gint i;
gchar *new = NULL;
@ -622,7 +622,7 @@ static void replace_special_character()
gchar buf[7];
gint len;
sci_get_selected_text(doc->editor->sci, selection);
selection = sci_get_selection_contents(doc->editor->sci);
selection_len = sci_get_selected_text_length(doc->editor->sci) - 1;
for (i = 0; i < selection_len; i++)