aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indent.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/indent.c b/src/indent.c
index aa3f855344e..452718cac77 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -749,7 +749,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
749 } 749 }
750 /* if the `invisible' property is set, we can skip to 750 /* if the `invisible' property is set, we can skip to
751 the next property change */ 751 the next property change */
752 prop = Fget_char_property (position, Qinvisible, window); 752 if (EQ (win->buffer, buffer))
753 prop = Fget_char_property (position, Qinvisible, window);
754 else
755 prop = Fget_char_property (position, Qinvisible, buffer);
753 if (TEXT_PROP_MEANS_INVISIBLE (prop)) 756 if (TEXT_PROP_MEANS_INVISIBLE (prop))
754 pos = next_boundary; 757 pos = next_boundary;
755 } 758 }
@@ -985,9 +988,10 @@ TAB-OFFSET is the number of columns of the first tab that aren't\n\
985being displayed, perhaps because the line was continued within it.\n\ 988being displayed, perhaps because the line was continued within it.\n\
986If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\ 989If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\
987\n\ 990\n\
988WINDOW is the window to operate on. Currently this is used only to\n\ 991WINDOW is the window to operate on. It is used to choose the display table;\n\
989find the display table. It does not matter what buffer WINDOW displays;\n\ 992if it is showing the current buffer, it is used also for\n\
990`compute-motion' always operates on the current buffer.\n\ 993deciding which overlay properties apply.\n\
994Note that `compute-motion' always operates on the current buffer.\n\
991\n\ 995\n\
992The value is a list of five elements:\n\ 996The value is a list of five elements:\n\
993 (POS HPOS VPOS PREVHPOS CONTIN)\n\ 997 (POS HPOS VPOS PREVHPOS CONTIN)\n\