Commit 47ab9b2d authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't jump to the next line if we are at the end of the line.

2005-06-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
	jump to the next line if we are at the end of the line.
parent ded7d9b2
2005-06-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
2005-06-23 Tor Lillqvist <tml@novell.com> 2005-06-23 Tor Lillqvist <tml@novell.com>
Improve and simplify line segment rendering on Win32, especially Improve and simplify line segment rendering on Win32, especially
......
2005-06-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
2005-06-23 Tor Lillqvist <tml@novell.com> 2005-06-23 Tor Lillqvist <tml@novell.com>
Improve and simplify line segment rendering on Win32, especially Improve and simplify line segment rendering on Win32, especially
......
2005-06-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
2005-06-23 Tor Lillqvist <tml@novell.com> 2005-06-23 Tor Lillqvist <tml@novell.com>
Improve and simplify line segment rendering on Win32, especially Improve and simplify line segment rendering on Win32, especially
......
...@@ -4752,6 +4752,8 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view, ...@@ -4752,6 +4752,8 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
break; break;
case GTK_MOVEMENT_PARAGRAPHS: case GTK_MOVEMENT_PARAGRAPHS:
g_print ("move paragraphs: %d %d\n",
count, gtk_text_iter_get_line_offset (&newplace));
if (count > 0) if (count > 0)
{ {
if (!gtk_text_iter_ends_line (&newplace)) if (!gtk_text_iter_ends_line (&newplace))
...@@ -5027,7 +5029,8 @@ gtk_text_view_scroll_hpages (GtkTextView *text_view, ...@@ -5027,7 +5029,8 @@ gtk_text_view_scroll_hpages (GtkTextView *text_view,
else if (count > 0 && adj->value >= (adj->upper - adj->page_size - 1e-12)) else if (count > 0 && adj->value >= (adj->upper - adj->page_size - 1e-12))
{ {
/* already at far right, just be sure we are at the end */ /* already at far right, just be sure we are at the end */
gtk_text_iter_forward_to_line_end (&new_insert); if (!gtk_text_iter_ends_line (&new_insert))
gtk_text_iter_forward_to_line_end (&new_insert);
move_cursor (text_view, &new_insert, extend_selection); move_cursor (text_view, &new_insert, extend_selection);
} }
else else
......
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