Mercurial > emacs
changeset 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 | 6e80a9e29466 |
children | e1b4b0d66bf3 |
files | src/dispnew.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Wed Mar 22 21:20:41 1995 +0000 +++ b/src/dispnew.c Wed Mar 22 21:22:31 1995 +0000 @@ -1143,11 +1143,16 @@ && (FRAME_CURSOR_X (frame) + 1 >= window_internal_width (w) - 1)) || cursor_in_echo_area) return 0; - + /* Can't use direct output if highlighting a region. */ if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) return 0; + /* Can't use direct output at an overlay boundary; it might have + before-string or after-string properties. */ + if (overlay_touches_p (PT) || overlay_touches_p (PT - n)) + return 0; + #ifdef USE_TEXT_PROPERTIES /* Don't use direct output next to an invisible character since we might need to do something special. */