Mercurial > emacs
comparison src/xdisp.c @ 57001:01ad85e53516
(set_cursor_from_row): Also look at 'cursor' property in
overlay just before point.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 08 Sep 2004 11:37:16 +0000 |
parents | e5690f1ff0a5 |
children | 1e3f2e826c24 |
comparison
equal
deleted
inserted
replaced
57000:6f9c4809aa7f | 57001:01ad85e53516 |
---|---|
10707 && (pos = string_buffer_position (w, glyph->object, | 10707 && (pos = string_buffer_position (w, glyph->object, |
10708 string_before_pos), | 10708 string_before_pos), |
10709 (pos == 0 /* From overlay */ | 10709 (pos == 0 /* From overlay */ |
10710 || pos == pt_old))) | 10710 || pos == pt_old))) |
10711 { | 10711 { |
10712 cursor_from_overlay_pos = pos == 0 ? last_pos : 0; | 10712 /* Estimate overlay buffer position from the buffer |
10713 positions of the glyphs before and after the overlay. | |
10714 Add 1 to last_pos so that if point corresponds to the | |
10715 glyph right after the overlay, we still use a 'cursor' | |
10716 property found in that overlay. */ | |
10717 cursor_from_overlay_pos = pos == 0 ? last_pos+1 : 0; | |
10713 cursor = glyph; | 10718 cursor = glyph; |
10714 cursor_x = x; | 10719 cursor_x = x; |
10715 } | 10720 } |
10716 x += glyph->pixel_width; | 10721 x += glyph->pixel_width; |
10717 ++glyph; | 10722 ++glyph; |