Skip to content

Commit

Permalink
Still playing with height of command line cursor.
Browse files Browse the repository at this point in the history
  • Loading branch information
keforbes committed May 31, 2012
1 parent 768ed7d commit 478995c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void paintControl(PaintEvent e) {
e.gc.drawString(content, x1, bottom - height + offset);
// draw the caret
int y1 = bottom - height + offset;
int y2 = bottom - offset;
int y2 = y1 + e.gc.getFontMetrics().getHeight();
for (int i = 0; i < position; i++) {
x1 += e.gc.getAdvanceWidth(content.charAt(i));
}
Expand Down

0 comments on commit 478995c

Please sign in to comment.