[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5b2c9f4: Fix vertical-motion in truncated lines tha
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 5b2c9f4: Fix vertical-motion in truncated lines that end in a stretch |
Date: |
Sat, 10 Oct 2015 17:02:09 +0000 |
branch: master
commit 5b2c9f4339c6cd9778b099268fcfee87a888324d
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix vertical-motion in truncated lines that end in a stretch
* src/indent.c (Fvertical_motion): Expect overshoot when point is
beyond window margin and lines are truncated, even if we have a
stretch at point. (Bug#21468)
---
src/indent.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/indent.c b/src/indent.c
index 584f217..330065b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2082,7 +2082,11 @@ whether or not it is currently displayed in some window.
*/)
}
else
it_overshoot_count =
- !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH);
+ (!(it.method == GET_FROM_IMAGE
+ || it.method == GET_FROM_STRETCH)
+ /* We will overshoot if lines are truncated and PT lies
+ beyond the right margin of the window. */
+ || it.line_wrap == TRUNCATE);
if (start_x_given)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5b2c9f4: Fix vertical-motion in truncated lines that end in a stretch,
Eli Zaretskii <=