diff options
| author | Eli Zaretskii | 2015-10-10 20:01:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-10-10 20:01:00 +0300 |
| commit | 5b2c9f4339c6cd9778b099268fcfee87a888324d (patch) | |
| tree | 229523bb0bb1e153a01062a4c5c06dfaf7dd9085 /src | |
| parent | f655d09fd5b49652f11ab91a31b920dbc36eb10f (diff) | |
| download | emacs-5b2c9f4339c6cd9778b099268fcfee87a888324d.tar.gz emacs-5b2c9f4339c6cd9778b099268fcfee87a888324d.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 584f2179bc5..330065b085e 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2082,7 +2082,11 @@ whether or not it is currently displayed in some window. */) | |||
| 2082 | } | 2082 | } |
| 2083 | else | 2083 | else |
| 2084 | it_overshoot_count = | 2084 | it_overshoot_count = |
| 2085 | !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH); | 2085 | (!(it.method == GET_FROM_IMAGE |
| 2086 | || it.method == GET_FROM_STRETCH) | ||
| 2087 | /* We will overshoot if lines are truncated and PT lies | ||
| 2088 | beyond the right margin of the window. */ | ||
| 2089 | || it.line_wrap == TRUNCATE); | ||
| 2086 | 2090 | ||
| 2087 | if (start_x_given) | 2091 | if (start_x_given) |
| 2088 | { | 2092 | { |