#include "category.h"
#include "composite.h"
#include "indent.h"
-#include "keyboard.h"
#include "frame.h"
#include "window.h"
-#include "termchar.h"
#include "disptab.h"
#include "intervals.h"
#include "dispextern.h"
}
else
it_overshoot_count =
- !(it.method == GET_FROM_IMAGE || it.method == GET_FROM_STRETCH);
+ (!(it.method == GET_FROM_IMAGE
+ || it.method == GET_FROM_STRETCH)
+ /* We will overshoot if lines are truncated and PT lies
+ beyond the right margin of the window. */
+ || it.line_wrap == TRUNCATE);
if (start_x_given)
{