[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 28a5b8a: Fix vertical cursor motion across too wide
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 28a5b8a: Fix vertical cursor motion across too wide images |
Date: |
Sun, 13 Aug 2017 10:50:20 -0400 (EDT) |
branch: master
commit 28a5b8adcc1cf5e70b06749c73645f4caa9d0b37
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix vertical cursor motion across too wide images
* src/indent.c (Fvertical_motion): If lines are truncated and we
end up beyond the right margin of the window, don't assume we are
in the next screen line, unless VPOS actually says so. (Bug#28071)
---
src/indent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/indent.c b/src/indent.c
index 4c6dacd..d76ac02 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2229,10 +2229,10 @@ whether or not it is currently displayed in some
window. */)
screen lines we need to backtrack. */
it_overshoot_count = it.vpos;
}
- /* We will overshoot if lines are truncated and point lies
+ /* We might overshoot if lines are truncated and point lies
beyond the right margin of the window. */
if (it.line_wrap == TRUNCATE && it.current_x >= it.last_visible_x
- && it_overshoot_count == 0)
+ && it_overshoot_count == 0 && it.vpos > 0)
it_overshoot_count = 1;
if (it_overshoot_count > 0)
move_it_by_lines (&it, -it_overshoot_count);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 28a5b8a: Fix vertical cursor motion across too wide images,
Eli Zaretskii <=