Tuesday, 10 April 2012

Patch: desktop/textarea.c - use caret_height for caret redraw

Index: desktop/textarea.c
===================================================================
--- desktop/textarea.c (Revision 13844)
+++ desktop/textarea.c (Arbeitskopie)
@@ -908,7 +908,7 @@
/* Caret in vertical clip range; plot */
plot->line(x + ta->caret_x, y + ta->caret_y,
x + ta->caret_x,
- y + ta->caret_y + ta->line_height,
+ y + ta->caret_y + caret_height,
&pstyle_stroke_caret);
}
}
Hello,

I think this is an bug within the textarea implementation. Altough
caret_height is calculated,
textarea->line_height is used for redraw of the caret. This patch
changes that,
so that caret_height is used.

Greets,
Ole

Patch:

Index: desktop/textarea.c
===================================================================
--- desktop/textarea.c (Revision 13844)
+++ desktop/textarea.c (Arbeitskopie)
@@ -908,7 +908,7 @@
/* Caret in vertical clip range; plot */
plot->line(x + ta->caret_x, y + ta->caret_y,
x + ta->caret_x,
- y + ta->caret_y + ta->line_height,
+ y + ta->caret_y + caret_height,
&pstyle_stroke_caret);
}
}

No comments:

Post a Comment