Mercurial > emacs
comparison src/xterm.c @ 13598:4fbb17b559bf
(show_mouse_face): When clearing cursor, use proper column range.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 20 Nov 1995 04:46:08 +0000 |
parents | 21b6b8f50143 |
children | 8873aa3451dd |
comparison
equal
deleted
inserted
replaced
13597:493156a0ad85 | 13598:4fbb17b559bf |
---|---|
2180 endcolumn = min (endcolumn, FRAME_CURRENT_GLYPHS (f)->used[i]); | 2180 endcolumn = min (endcolumn, FRAME_CURRENT_GLYPHS (f)->used[i]); |
2181 | 2181 |
2182 /* If the cursor's in the text we are about to rewrite, | 2182 /* If the cursor's in the text we are about to rewrite, |
2183 turn the cursor off. */ | 2183 turn the cursor off. */ |
2184 if (i == curs_y | 2184 if (i == curs_y |
2185 && curs_x >= FRAME_X_DISPLAY_INFO (f)->mouse_face_beg_col - 1 | 2185 && curs_x >= column - 1 |
2186 && curs_x <= FRAME_X_DISPLAY_INFO (f)->mouse_face_end_col) | 2186 && curs_x <= endcolumn) |
2187 { | 2187 { |
2188 x_display_cursor (f, 0); | 2188 x_display_cursor (f, 0); |
2189 cursor_off = 1; | 2189 cursor_off = 1; |
2190 } | 2190 } |
2191 | 2191 |