[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117714: * xdisp.c (erase_phys_cursor): Fix confusio
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] trunk r117714: * xdisp.c (erase_phys_cursor): Fix confusion between window-relative |
Date: |
Tue, 19 Aug 2014 00:51:41 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117714
revision-id: address@hidden
parent: address@hidden
committer: YAMAMOTO Mitsuharu <address@hidden>
branch nick: trunk
timestamp: Tue 2014-08-19 09:51:33 +0900
message:
* xdisp.c (erase_phys_cursor): Fix confusion between window-relative
and text area-relative x-coordinates.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/xdisp.c xdisp.c-20091113204419-o5vbwnq5f7feedwu-240
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-08-17 14:58:04 +0000
+++ b/src/ChangeLog 2014-08-19 00:51:33 +0000
@@ -1,3 +1,8 @@
+2014-08-19 YAMAMOTO Mitsuharu <address@hidden>
+
+ * xdisp.c (erase_phys_cursor): Fix confusion between window-relative
+ and text area-relative x-coordinates.
+
2014-08-17 Eli Zaretskii <address@hidden>
Avoid overwriting the reversed_p flags in the glyph matrices when
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2014-08-17 14:58:04 +0000
+++ b/src/xdisp.c 2014-08-19 00:51:33 +0000
@@ -27370,7 +27370,7 @@
/* Maybe clear the display under the cursor. */
if (w->phys_cursor_type == HOLLOW_BOX_CURSOR)
{
- int x, y, left_x;
+ int x, y;
int header_line_height = WINDOW_HEADER_LINE_HEIGHT (w);
int width;
@@ -27379,13 +27379,15 @@
goto mark_cursor_off;
width = cursor_glyph->pixel_width;
- left_x = window_box_left_offset (w, TEXT_AREA);
x = w->phys_cursor.x;
- if (x < left_x)
- width -= left_x - x;
+ if (x < 0)
+ {
+ width += x;
+ x = 0;
+ }
width = min (width, window_box_width (w, TEXT_AREA) - x);
y = WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, cursor_row->y));
- x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, max (x, left_x));
+ x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, x);
if (width > 0)
FRAME_RIF (f)->clear_frame_area (f, x, y, width,
cursor_row->visible_height);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117714: * xdisp.c (erase_phys_cursor): Fix confusion between window-relative,
YAMAMOTO Mitsuharu <=