changeset 15059:3b7454f2d662

(compute_motion): Pass window to Fget_char_property.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Apr 1996 05:56:01 +0000
parents 767429c4d3d2
children 0e3910449935
files src/indent.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Sun Apr 21 05:54:18 1996 +0000
+++ b/src/indent.c	Sun Apr 21 05:56:01 1996 +0000
@@ -676,8 +676,10 @@
 
   /* 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 ())
@@ -747,8 +749,7 @@
 	      }
 	    /* 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;
 	  }