Commit ad955c81 authored by Owen Taylor's avatar Owen Taylor

ri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>

        * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
        backspacing on the empty last line of a buffer
        (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
        Dan Williams)
parent 81229a1b
Fri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
backspacing on the empty last line of a buffer
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
Dan Williams)
2004-10-22 Matthias Clasen <mclasen@redhat.com> 2004-10-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c: Document how to use info with text/image * gtk/gtkdnd.c: Document how to use info with text/image
......
Fri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
backspacing on the empty last line of a buffer
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
Dan Williams)
2004-10-22 Matthias Clasen <mclasen@redhat.com> 2004-10-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c: Document how to use info with text/image * gtk/gtkdnd.c: Document how to use info with text/image
......
Fri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
backspacing on the empty last line of a buffer
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
Dan Williams)
2004-10-22 Matthias Clasen <mclasen@redhat.com> 2004-10-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c: Document how to use info with text/image * gtk/gtkdnd.c: Document how to use info with text/image
......
Fri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
backspacing on the empty last line of a buffer
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
Dan Williams)
2004-10-22 Matthias Clasen <mclasen@redhat.com> 2004-10-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c: Document how to use info with text/image * gtk/gtkdnd.c: Document how to use info with text/image
......
...@@ -3423,8 +3423,17 @@ gtk_text_buffer_backspace (GtkTextBuffer *buffer, ...@@ -3423,8 +3423,17 @@ gtk_text_buffer_backspace (GtkTextBuffer *buffer,
end = *iter; end = *iter;
attrs = _gtk_text_buffer_get_line_log_attrs (buffer, &start, NULL); attrs = _gtk_text_buffer_get_line_log_attrs (buffer, &start, NULL);
/* For no good reason, attrs is NULL for the empty last line in
* a buffer. Special case that here. (#156164)
*/
if (attrs)
{
offset = gtk_text_iter_get_line_offset (&start); offset = gtk_text_iter_get_line_offset (&start);
backspace_deletes_character = attrs[offset].backspace_deletes_character; backspace_deletes_character = attrs[offset].backspace_deletes_character;
}
else
backspace_deletes_character = FALSE;
gtk_text_iter_backward_cursor_position (&start); gtk_text_iter_backward_cursor_position (&start);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment