[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r115190: Fix bug #15951 with vertical-motion near be
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r115190: Fix bug #15951 with vertical-motion near beginning of narrowed region. |
Date: |
Fri, 22 Nov 2013 16:05:49 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 115190
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/15951
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2013-11-22 18:04:49 +0200
message:
Fix bug #15951 with vertical-motion near beginning of narrowed region.
src/bidi.c (bidi_find_paragraph_start): Limit the returned positions
to BEGV_BYTE..ZV_BYTE range.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/bidi.c bidi.c-20091231194348-rm8gzug639w0dpq5-1
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-11-21 17:26:55 +0000
+++ b/src/ChangeLog 2013-11-22 16:04:49 +0000
@@ -1,3 +1,8 @@
+2013-11-22 Eli Zaretskii <address@hidden>
+
+ * bidi.c (bidi_find_paragraph_start): Limit the returned positions
+ to BEGV_BYTE..ZV_BYTE range. (Bug#15951)
+
2013-11-21 Paul Eggert <address@hidden>
Fix some dependency problems that cause unnecessary recompiles.
=== modified file 'src/bidi.c'
--- a/src/bidi.c 2013-09-17 07:06:42 +0000
+++ b/src/bidi.c 2013-11-22 16:04:49 +0000
@@ -1148,6 +1148,9 @@
pos = BEGV, pos_byte = BEGV_BYTE;
if (bpc)
know_region_cache (current_buffer, bpc, pos, oldpos);
+ /* Positions returned by the region cache are not limited to
+ BEGV..ZV range, so we limit them here. */
+ pos_byte = clip_to_bounds (BEGV_BYTE, pos_byte, ZV_BYTE);
return pos_byte;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r115190: Fix bug #15951 with vertical-motion near beginning of narrowed region.,
Eli Zaretskii <=