Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ffc21858
Commit
ffc21858
authored
Aug 01, 2011
by
Eli Zaretskii
Browse files
Fix last change for bug#9212.
parent
525d5e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
src/xdisp.c
src/xdisp.c
+19
-12
No files found.
src/xdisp.c
View file @
ffc21858
...
...
@@ -5730,29 +5730,36 @@ reseat_at_next_visible_line_start (struct it *it, int on_newline_p)
{
if (IT_STRING_CHARPOS (*it) > 0)
{
--IT_STRING_CHARPOS (*it);
--IT_STRING_BYTEPOS (*it);
if (it->bidi_p)
if (!it->bidi_p)
{
--IT_STRING_CHARPOS (*it);
--IT_STRING_BYTEPOS (*it);
}
else
{
/* We need to restore the bidi iterator to the state
it had on the newline. */
it had on the newline, and resync the IT's
position with that. */
it->bidi_it = bidi_it_prev;
xassert (
IT_STRING_CHARPOS (*it) =
=
it->bidi_it.charpos
&&
IT_STRING_BYTEPOS (*it) =
=
it->bidi_it.bytepos
)
;
IT_STRING_CHARPOS (*it) = it->bidi_it.charpos
;
IT_STRING_BYTEPOS (*it) = it->bidi_it.bytepos;
}
}
}
else if (IT_CHARPOS (*it) > BEGV)
{
--IT_CHARPOS (*it);
--IT_BYTEPOS (*it);
if (it->bidi_p)
if (!it->bidi_p)
{
--IT_CHARPOS (*it);
--IT_BYTEPOS (*it);
}
else
{
/* We need to restore the bidi iterator to the state it
had on the newline. */
had on the newline
and resync IT with that
. */
it->bidi_it = bidi_it_prev;
xassert (
IT_CHARPOS (*it) =
=
it->bidi_it.charpos
&&
IT_BYTEPOS (*it) =
=
it->bidi_it.bytepos
)
;
IT_CHARPOS (*it) = it->bidi_it.charpos
;
IT_BYTEPOS (*it) = it->bidi_it.bytepos;
}
reseat (it, it->current.pos, 0);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment