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:
parent
349d516e75
commit
10ea2cc7ba
@ -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>
|
2009-03-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
|
||||||
* src/callbacks.c:
|
* src/callbacks.c:
|
||||||
|
@ -613,8 +613,8 @@ static void replace_special_character()
|
|||||||
|
|
||||||
if (doc != NULL && sci_has_selection(doc->editor->sci))
|
if (doc != NULL && sci_has_selection(doc->editor->sci))
|
||||||
{
|
{
|
||||||
gint selection_len = sci_get_selected_text_length(doc->editor->sci);
|
gint selection_len;
|
||||||
gchar *selection = g_malloc(selection_len + 1);
|
gchar *selection = NULL;
|
||||||
GString *replacement = g_string_new(NULL);
|
GString *replacement = g_string_new(NULL);
|
||||||
gint i;
|
gint i;
|
||||||
gchar *new = NULL;
|
gchar *new = NULL;
|
||||||
@ -622,7 +622,7 @@ static void replace_special_character()
|
|||||||
gchar buf[7];
|
gchar buf[7];
|
||||||
gint len;
|
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;
|
selection_len = sci_get_selected_text_length(doc->editor->sci) - 1;
|
||||||
for (i = 0; i < selection_len; i++)
|
for (i = 0; i < selection_len; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user