[gtksourceview/gnome-3-24] move-lines: get text with gtk_text_buffer_get_text(), not get_slice()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] move-lines: get text with gtk_text_buffer_get_text(), not get_slice()
- Date: Thu, 30 Mar 2017 15:41:35 +0000 (UTC)
commit 35605da281f863c2f512dac02ca314ffacb036e2
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Mar 30 14:41:24 2017 +0200
move-lines: get text with gtk_text_buffer_get_text(), not get_slice()
Embedded images must not be copied or transformed into 0xFFFC.
gtksourceview/gtksourceview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index d1ae95f..8bb541d 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -3776,7 +3776,7 @@ gtk_source_view_move_lines (GtkSourceView *view,
return;
}
- text = gtk_text_buffer_get_slice (buffer, &start, &end, TRUE);
+ text = gtk_text_buffer_get_text (buffer, &start, &end, TRUE);
/* First special case) We are moving up the last line
* of the buffer, check if buffer ends with a paragraph
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]