#include "termchar.h"
#include "termopts.h"
#include "termhooks.h"
-#ifdef HAVE_NTGUI
+/* cm.h must come after dispextern.h on Windows. */
#include "dispextern.h"
#include "cm.h"
-#else
-#include "cm.h"
-#include "dispextern.h"
-#endif /* HAVE_NTGUI */
#include "buffer.h"
#include "frame.h"
#include "window.h"
if (! current_frame->highlight[vpos])
{
if (!must_write_spaces)
- while (obody[olen - 1] == SPACEGLYPH && olen > 0)
+ while (olen > 0 && obody[olen - 1] == SPACEGLYPH)
olen--;
}
else