summaryrefslogtreecommitdiff
path: root/gtk/gtktext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktext.c')
-rw-r--r--gtk/gtktext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 7b69ea6ee..8ef9b1aea 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -4022,7 +4022,7 @@ gtk_text_move_cursor (GtkEditable *editable,
while (y-- != 0)
move_cursor_ver (GTK_TEXT (editable), 1);
}
- else if (x < 0)
+ else if (y < 0)
{
while (y++ != 0)
move_cursor_ver (GTK_TEXT (editable), -1);