diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 419187376f5..f637dec64d0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10145,14 +10145,12 @@ include the height of both, if present, in the return value. */) | |||
| 10145 | directionality, and regions that begin and end in text of the | 10145 | directionality, and regions that begin and end in text of the |
| 10146 | same directionality. */ | 10146 | same directionality. */ |
| 10147 | it.bidi_p = false; | 10147 | it.bidi_p = false; |
| 10148 | void *it2data = NULL; | ||
| 10149 | struct it it2; | ||
| 10150 | SAVE_IT (it2, it, it2data); | ||
| 10151 | 10148 | ||
| 10152 | int move_op = MOVE_TO_POS | MOVE_TO_Y; | 10149 | int move_op = MOVE_TO_POS | MOVE_TO_Y; |
| 10153 | int to_x = -1; | 10150 | int to_x = -1; |
| 10154 | if (!NILP (x_limit)) | 10151 | if (!NILP (x_limit)) |
| 10155 | { | 10152 | { |
| 10153 | it.last_visible_x = max_x; | ||
| 10156 | /* Actually, we never want move_it_to stop at to_x. But to make | 10154 | /* Actually, we never want move_it_to stop at to_x. But to make |
| 10157 | sure that move_it_in_display_line_to always moves far enough, | 10155 | sure that move_it_in_display_line_to always moves far enough, |
| 10158 | we set to_x to INT_MAX and specify MOVE_TO_X. */ | 10156 | we set to_x to INT_MAX and specify MOVE_TO_X. */ |
| @@ -10160,6 +10158,10 @@ include the height of both, if present, in the return value. */) | |||
| 10160 | to_x = INT_MAX; | 10158 | to_x = INT_MAX; |
| 10161 | } | 10159 | } |
| 10162 | 10160 | ||
| 10161 | void *it2data = NULL; | ||
| 10162 | struct it it2; | ||
| 10163 | SAVE_IT (it2, it, it2data); | ||
| 10164 | |||
| 10163 | x = move_it_to (&it, end, to_x, max_y, -1, move_op); | 10165 | x = move_it_to (&it, end, to_x, max_y, -1, move_op); |
| 10164 | 10166 | ||
| 10165 | /* We could have a display property at END, in which case asking | 10167 | /* We could have a display property at END, in which case asking |