forked from AuroraMiddleware/gtk
textview: Fix comparison being the wrong way
Keynav failed when the position did _not_ change.
This commit is contained in:
parent
6ab7b87a02
commit
bd8e9085ab
@ -5324,7 +5324,7 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
|
||||
old_xpos = priv->xoffset;
|
||||
old_ypos = priv->yoffset;
|
||||
gtk_text_view_move_viewport (text_view, scroll_step, count);
|
||||
if ((old_xpos != priv->xoffset || old_ypos != priv->yoffset) &&
|
||||
if ((old_xpos == priv->xoffset && old_ypos == priv->yoffset) &&
|
||||
leave_direction != -1 &&
|
||||
!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
|
||||
leave_direction))
|
||||
|
Loading…
Reference in New Issue
Block a user