diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-02 20:16:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-02 20:44:40 -0400 |
commit | d119c55b72500d6404cb1b5021f3f4203a5a8f0b (patch) | |
tree | b6fc04a5b20e53b4f6b7d7a60e6e09c6238d2386 /gtk/gtktextview.c | |
parent | 253e25a73c8168e862dc447ad29185944cda9cca (diff) | |
download | gtk+-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.c | 2 |
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); |