aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorK. Handa2016-01-03 17:53:43 +0900
committerK. Handa2016-01-03 17:53:43 +0900
commitfb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch)
treeb9ce862d6cbe25e740203421984df21e4cbadbf4 /src/indent.c
parent536f48e9a2251b9e654ea974bd90ff2f40218753 (diff)
parent91917dd58ec5278e555b9c693a830749083e8f89 (diff)
downloademacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz
emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/indent.c b/src/indent.c
index 04837f8f513..33bf424b344 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2080,11 +2080,7 @@ whether or not it is currently displayed in some window. */)
2080 } 2080 }
2081 else 2081 else
2082 it_overshoot_count = 2082 it_overshoot_count =
2083 (!(it.method == GET_FROM_IMAGE 2083 !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH);
2084 || it.method == GET_FROM_STRETCH)
2085 /* We will overshoot if lines are truncated and PT lies
2086 beyond the right margin of the window. */
2087 || it.line_wrap == TRUNCATE);
2088 2084
2089 if (start_x_given) 2085 if (start_x_given)
2090 { 2086 {
@@ -2142,6 +2138,11 @@ whether or not it is currently displayed in some window. */)
2142 screen lines we need to backtrack. */ 2138 screen lines we need to backtrack. */
2143 it_overshoot_count = it.vpos; 2139 it_overshoot_count = it.vpos;
2144 } 2140 }
2141 /* We will overshoot if lines are truncated and point lies
2142 beyond the right margin of the window. */
2143 if (it.line_wrap == TRUNCATE && it.current_x >= it.last_visible_x
2144 && it_overshoot_count == 0)
2145 it_overshoot_count = 1;
2145 if (it_overshoot_count > 0) 2146 if (it_overshoot_count > 0)
2146 move_it_by_lines (&it, -it_overshoot_count); 2147 move_it_by_lines (&it, -it_overshoot_count);
2147 2148