summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-03-31 10:18:37 +0000
committerMatthias Clasen <mclasen@redhat.com>2022-03-31 10:18:37 +0000
commitd152b1bae9153476cf057f816ae3ce96b7b538a8 (patch)
treee37b9db9f3d0518351ef89b49df2664a3db9e5e8 /pango/pango-layout.c
parentf9cc99d3f80d919aa766012a2f0068033de8622c (diff)
parentbc00edb9426ddb326b6d6d1cf725cad441b511f2 (diff)
downloadpango-d152b1bae9153476cf057f816ae3ce96b7b538a8.tar.gz
Merge branch 'fix-rtl-cursor-move' into 'main'
Fix move pango_layout_move_cursor_visually Closes #679 See merge request GNOME/pango!608
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index e45fb69f..eb674b50 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2184,9 +2184,9 @@ pango_layout_move_cursor_visually (PangoLayout *layout,
else
{
if (old_index == line->start_index + line->length && direction < 0)
- off_start = TRUE;
- if (old_index == line->start_index && direction > 0)
off_end = TRUE;
+ if (old_index == line->start_index && direction > 0)
+ off_start = TRUE;
}
if (off_start || off_end)