diff options
| author | Kim F. Storm | 2004-09-08 11:37:16 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-09-08 11:37:16 +0000 |
| commit | bc9447bc283af2fea14ad5b9ea904916070015ee (patch) | |
| tree | 4a027a16074684d16cdf84629fca84356ad60c64 | |
| parent | edbf5932c49ec06bd1bcc4c0b3809b83ba9b57be (diff) | |
| download | emacs-bc9447bc283af2fea14ad5b9ea904916070015ee.tar.gz emacs-bc9447bc283af2fea14ad5b9ea904916070015ee.zip | |
(set_cursor_from_row): Also look at 'cursor' property in
overlay just before point.
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 4de7166589d..bae84d548c0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10709,7 +10709,12 @@ set_cursor_from_row (w, row, matrix, delta, delta_bytes, dy, dvpos) | |||
| 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 | } |