summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-02-05 14:27:46 +0200
committerEli Zaretskii <eliz@gnu.org>2021-02-05 14:27:46 +0200
commit07ead60a822580b1dd3d8b3a5f6730d486b57cb3 (patch)
tree7e3557ce2e460d1d4903aa492a06aa470558bed0
parent764db69dd06b794074561e3830fdf02e67698445 (diff)
downloademacs-07ead60a822580b1dd3d8b3a5f6730d486b57cb3.tar.gz
; * src/xdisp.c (Fwindow_text_pixel_size): Another minor fix.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 4db981aa655..764735769b4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10777,7 +10777,7 @@ include the height of both, if present, in the return value. */)
/* If text spans more than one screen line, we don't need to adjust
the x-span for start_x, since the second and subsequent lines
will begin at zero X coordinate. */
- if (it.current_y > 0)
+ if (it.current_y > start_y)
start_x = 0;
/* Subtract height of header-line which was counted automatically by