diff options
| author | Eli Zaretskii | 2018-03-13 20:00:54 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-03-13 20:00:54 +0200 |
| commit | 06911714ef66ea81380b1eda75a9f7cfbc9e0b65 (patch) | |
| tree | 230b53ca8ab49a167842defeeee4a1480fa56c08 /src | |
| parent | 9f8e7712d98f49dfdd6975f781bc392b50394120 (diff) | |
| download | emacs-06911714ef66ea81380b1eda75a9f7cfbc9e0b65.tar.gz emacs-06911714ef66ea81380b1eda75a9f7cfbc9e0b65.zip | |
* src/xdisp.c (Fwindow_text_pixel_size): Fix last change.
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 44eb1ebf059..693e273eb07 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10143,14 +10143,12 @@ include the height of both, if present, in the return value. */) | |||
| 10143 | directionality, and regions that begin and end in text of the | 10143 | directionality, and regions that begin and end in text of the |
| 10144 | same directionality. */ | 10144 | same directionality. */ |
| 10145 | it.bidi_p = false; | 10145 | it.bidi_p = false; |
| 10146 | void *it2data = NULL; | ||
| 10147 | struct it it2; | ||
| 10148 | SAVE_IT (it2, it, it2data); | ||
| 10149 | 10146 | ||
| 10150 | int move_op = MOVE_TO_POS | MOVE_TO_Y; | 10147 | int move_op = MOVE_TO_POS | MOVE_TO_Y; |
| 10151 | int to_x = -1; | 10148 | int to_x = -1; |
| 10152 | if (!NILP (x_limit)) | 10149 | if (!NILP (x_limit)) |
| 10153 | { | 10150 | { |
| 10151 | it.last_visible_x = max_x; | ||
| 10154 | /* Actually, we never want move_it_to stop at to_x. But to make | 10152 | /* Actually, we never want move_it_to stop at to_x. But to make |
| 10155 | sure that move_it_in_display_line_to always moves far enough, | 10153 | sure that move_it_in_display_line_to always moves far enough, |
| 10156 | we set to_x to INT_MAX and specify MOVE_TO_X. */ | 10154 | we set to_x to INT_MAX and specify MOVE_TO_X. */ |
| @@ -10158,6 +10156,10 @@ include the height of both, if present, in the return value. */) | |||
| 10158 | to_x = INT_MAX; | 10156 | to_x = INT_MAX; |
| 10159 | } | 10157 | } |
| 10160 | 10158 | ||
| 10159 | void *it2data = NULL; | ||
| 10160 | struct it it2; | ||
| 10161 | SAVE_IT (it2, it, it2data); | ||
| 10162 | |||
| 10161 | x = move_it_to (&it, end, to_x, max_y, -1, move_op); | 10163 | x = move_it_to (&it, end, to_x, max_y, -1, move_op); |
| 10162 | 10164 | ||
| 10163 | /* We could have a display property at END, in which case asking | 10165 | /* We could have a display property at END, in which case asking |