comparison src/dispnew.c @ 11096:cac0367b1794

(direct_output_forward_char): Don't use direct output at an overlay boundary.
author Karl Heuer <kwzh@gnu.org>
date Wed, 22 Mar 1995 21:22:31 +0000
parents 79745e047484
children e6bdaaa6ce1b
comparison
equal deleted inserted replaced
11095:6e80a9e29466 11096:cac0367b1794
1141 && (XINT (w->hscroll) || n < 0)) 1141 && (XINT (w->hscroll) || n < 0))
1142 || (n > 0 1142 || (n > 0
1143 && (FRAME_CURSOR_X (frame) + 1 >= window_internal_width (w) - 1)) 1143 && (FRAME_CURSOR_X (frame) + 1 >= window_internal_width (w) - 1))
1144 || cursor_in_echo_area) 1144 || cursor_in_echo_area)
1145 return 0; 1145 return 0;
1146 1146
1147 /* Can't use direct output if highlighting a region. */ 1147 /* Can't use direct output if highlighting a region. */
1148 if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) 1148 if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
1149 return 0;
1150
1151 /* Can't use direct output at an overlay boundary; it might have
1152 before-string or after-string properties. */
1153 if (overlay_touches_p (PT) || overlay_touches_p (PT - n))
1149 return 0; 1154 return 0;
1150 1155
1151 #ifdef USE_TEXT_PROPERTIES 1156 #ifdef USE_TEXT_PROPERTIES
1152 /* Don't use direct output next to an invisible character 1157 /* Don't use direct output next to an invisible character
1153 since we might need to do something special. */ 1158 since we might need to do something special. */