[gtk/surround-test: 3/4] textview: Fix the get_surrounding implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/surround-test: 3/4] textview: Fix the get_surrounding implementation
- Date: Tue, 3 Aug 2021 00:45:04 +0000 (UTC)
commit d119c55b72500d6404cb1b5021f3f4203a5a8f0b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 2 20:16:50 2021 -0400
textview: Fix the get_surrounding implementation
This was, sadly, returning garbage.
gtk/gtktextview.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 6c04a0e585..d6673bed62 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8436,7 +8436,7 @@ gtk_text_view_retrieve_surrounding_handler (GtkIMContext *context,
start1 = start;
end1 = end;
- gtk_text_iter_set_line_offset (&start, 0);
+ gtk_text_iter_set_line_offset (&start1, 0);
gtk_text_iter_forward_to_line_end (&end1);
pre = gtk_text_iter_get_slice (&start1, &start);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]