Don't move back one char when we are actually at the end of the paragraph.

Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
	Don't move back one char when we are actually at the end of the
	paragraph.

CV: ----------------------------------------------------------------------
This commit is contained in:
Owen Taylor 2000-11-16 01:19:27 +00:00 committed by Owen Taylor
parent c087b64c77
commit afb5788071
8 changed files with 47 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -1,3 +1,9 @@
Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.
2000-11-15 Robert Brady <robert@suse.co.uk>
* modules/input/iminuktitut.c (inuktitut_compose_seqs):

View File

@ -2501,11 +2501,11 @@ gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout,
direction < 0 ? byte_offset : byte_offset + layout_line->length,
0);
/* FIXME: As a bad hack, we move back one position to avoid going
* to next line on a forced break not at whitespace. Real fix
* is to keep track of whether marks are at leading or trailing edge?
*/
if (direction > 0 && layout_line->length > 0)
/* FIXME: As a bad hack, we move back one position when we
* are inside a paragraph to avoid going to next line on a
* forced break not at whitespace. Real fix is to keep track
* of whether marks are at leading or trailing edge? */
if (direction > 0 && layout_line->length > 0 && !gtk_text_iter_ends_line (iter))
gtk_text_iter_prev_char (iter);
break;