summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-10-22 23:35:03 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-22 23:35:03 +0000
commit0d5635b36613c0e5eca772e223001d1858433c28 (patch)
tree7e1ecb35c78379de14107396ff045dab6ceeddf2 /gtk/gtktextbuffer.c
parent60ef9dd421b3050581f6e540541d1cc5a5e0bef3 (diff)
downloadgtk+-0d5635b36613c0e5eca772e223001d1858433c28.tar.gz
don't back up a char from the end iterator, fixes #61859 ("can't put
2001-10-22 Havoc Pennington <hp@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back up a char from the end iterator, fixes #61859 ("can't put cursor at the end of the buffer") * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this to work with delimiters other than newline. * tests/testtextbuffer.c: add some tests for get_chars_in_line, get_bytes_in_line * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the last line, since the newline is no longer counted. (gtk_text_iter_get_bytes_in_line): ditto
Diffstat (limited to 'gtk/gtktextbuffer.c')
-rw-r--r--gtk/gtktextbuffer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index ebd33443d9..e97cff8384 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -1866,9 +1866,6 @@ gtk_text_buffer_place_cursor (GtkTextBuffer *buffer,
real = *where;
- if (gtk_text_iter_is_end (&real))
- gtk_text_iter_backward_char (&real);
-
_gtk_text_btree_place_cursor (get_btree (buffer), &real);
gtk_text_buffer_mark_set (buffer, &real,
gtk_text_buffer_get_mark (buffer,