diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c index eb598424ff5..aa3f855344e 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -676,8 +676,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 676 | 676 | ||
| 677 | /* The next buffer pos where we should consult the width run cache. */ | 677 | /* The next buffer pos where we should consult the width run cache. */ |
| 678 | int next_width_run = from; | 678 | int next_width_run = from; |
| 679 | Lisp_Object window; | ||
| 679 | 680 | ||
| 680 | XSETBUFFER (buffer, current_buffer); | 681 | XSETBUFFER (buffer, current_buffer); |
| 682 | XSETWINDOW (window, win); | ||
| 681 | 683 | ||
| 682 | width_run_cache_on_off (); | 684 | width_run_cache_on_off (); |
| 683 | if (dp == buffer_display_table ()) | 685 | if (dp == buffer_display_table ()) |
| @@ -747,8 +749,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 747 | } | 749 | } |
| 748 | /* if the `invisible' property is set, we can skip to | 750 | /* if the `invisible' property is set, we can skip to |
| 749 | the next property change */ | 751 | the next property change */ |
| 750 | prop = Fget_char_property (position, Qinvisible, | 752 | prop = Fget_char_property (position, Qinvisible, window); |
| 751 | Fcurrent_buffer ()); | ||
| 752 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) | 753 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) |
| 753 | pos = next_boundary; | 754 | pos = next_boundary; |
| 754 | } | 755 | } |