summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-02 20:16:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-02 20:44:40 -0400
commitd119c55b72500d6404cb1b5021f3f4203a5a8f0b (patch)
treeb6fc04a5b20e53b4f6b7d7a60e6e09c6238d2386 /gtk/gtktextview.c
parent253e25a73c8168e862dc447ad29185944cda9cca (diff)
downloadgtk+-d119c55b72500d6404cb1b5021f3f4203a5a8f0b.tar.gz
textview: Fix the get_surrounding implementation
This was, sadly, returning garbage.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c2
1 files changed, 1 insertions, 1 deletions
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);