[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106106: Fix part 1 of bug #9771 with
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106106: Fix part 1 of bug #9771 with assertion violation in move_it_by_lines. |
Date: |
Mon, 17 Oct 2011 21:13:44 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106106
fixes bug(s): http://debbugs.gnu.org/9771
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Mon 2011-10-17 21:13:44 +0200
message:
Fix part 1 of bug #9771 with assertion violation in move_it_by_lines.
src/xdisp.c (move_it_vertically_backward): Don't look for character position
immediately after the newline when in a continuation line.
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-10-17 17:03:20 +0000
+++ b/src/ChangeLog 2011-10-17 19:13:44 +0000
@@ -3,6 +3,9 @@
* xdisp.c (push_display_prop): Determine whether to record string
or buffer position by IT->string, not by IT->method. Allow
GET_FROM_DISPLAY_VECTOR as IT->method on entry. (Bug#9771, part 4)
+ (move_it_vertically_backward): Don't look for character position
+ immediately after the newline when in a continuation line.
+ (Bug#9771, part 1)
2011-10-15 Martin Rudalics <address@hidden>
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2011-10-17 17:03:20 +0000
+++ b/src/xdisp.c 2011-10-17 19:13:44 +0000
@@ -8768,7 +8768,10 @@
reordering. We want to get to the character position
that is immediately after the newline of the previous
line. */
- if (it->bidi_p && IT_CHARPOS (*it) > BEGV
+ if (it->bidi_p
+ && !it->continuation_lines_width
+ && !STRINGP (it->string)
+ && IT_CHARPOS (*it) > BEGV
&& FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n')
{
EMACS_INT nl_pos =
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106106: Fix part 1 of bug #9771 with assertion violation in move_it_by_lines.,
Eli Zaretskii <=