[gtksourceview/wip/fix-move-lines: 2/3] move-lines: get text with gtk_text_buffer_get_text(), not get_slice()



commit d20b337a6e6d660ffa6676bfd965ba9d75e5ad64
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 028b1c3..e4a3516 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -3738,7 +3738,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]