comparison src/window.c @ 3707:f6f6fc9eb269

[xemacs-hg @ 2006-11-28 21:20:22 by aidan] Better language behaviour on startup.
author aidan
date Tue, 28 Nov 2006 21:20:37 +0000
parents 719ceea8b3cb
children 74e0e1131e01
comparison
equal deleted inserted replaced
3706:4ca1ef2bdb6a 3707:f6f6fc9eb269
4221 } 4221 }
4222 4222
4223 default_face_height_and_width (window, &defheight, &defwidth); 4223 default_face_height_and_width (window, &defheight, &defwidth);
4224 /* #### This probably needs to know about the clipping area once a 4224 /* #### This probably needs to know about the clipping area once a
4225 final definition is decided on. */ 4225 final definition is decided on. */
4226 num_lines += ((ypos2 - ypos1) / defheight); 4226 if (defheight)
4227 num_lines += ((ypos2 - ypos1) / defheight);
4227 } 4228 }
4228 else 4229 else
4229 { 4230 {
4230 if (num_lines > 1 && Dynarr_atp (dla, 0)->modeline) 4231 if (num_lines > 1 && Dynarr_atp (dla, 0)->modeline)
4231 num_lines--; 4232 num_lines--;