/* The next buffer pos where we should consult the width run cache. */
int next_width_run = from;
+ Lisp_Object window;
XSETBUFFER (buffer, current_buffer);
+ XSETWINDOW (window, win);
width_run_cache_on_off ();
if (dp == buffer_display_table ())
}
/* if the `invisible' property is set, we can skip to
the next property change */
- prop = Fget_char_property (position, Qinvisible,
- Fcurrent_buffer ());
+ prop = Fget_char_property (position, Qinvisible, window);
if (TEXT_PROP_MEANS_INVISIBLE (prop))
pos = next_boundary;
}