diff --git a/RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ConfigurableCaret.java b/RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ConfigurableCaret.java index 5ab06d55a..43fa7f964 100755 --- a/RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ConfigurableCaret.java +++ b/RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ConfigurableCaret.java @@ -468,14 +468,16 @@ public void paint(Graphics g) { // Draw a vertical line. default: case VERTICAL_LINE_STYLE: - g.drawLine(r.x,r.y, r.x,r.y+r.height); + int lineY = r.y + 1; + g.drawLine(r.x,lineY, r.x,lineY+r.height); break; // A thicker vertical line. case THICK_VERTICAL_LINE_STYLE: - g.drawLine(r.x,r.y, r.x,r.y+r.height); + lineY = r.y + 1; + g.drawLine(r.x,lineY, r.x,lineY+r.height); r.x++; - g.drawLine(r.x,r.y, r.x,r.y+r.height); + g.drawLine(r.x,lineY, r.x,lineY+r.height); break; } // End of switch (style). diff --git a/RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/RSyntaxTextAreaDemoApp.java b/RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/RSyntaxTextAreaDemoApp.java index 379e0c11b..399d39fd4 100755 --- a/RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/RSyntaxTextAreaDemoApp.java +++ b/RSyntaxTextAreaDemo/src/main/java/org/fife/ui/rsyntaxtextarea/demo/RSyntaxTextAreaDemoApp.java @@ -26,7 +26,6 @@ public static void main(String[] args) { try { UIManager.setLookAndFeel(UIManager. getSystemLookAndFeelClassName()); -//UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch (Exception e) { e.printStackTrace(); // Never happens }