@ -645,6 +645,7 @@ int currentCaretY; // Used to know when to rehighlight current line.
setTabsEmulated(false);
// Stuff needed by the caret listener below.
setMargin(getInsets());
previousCaretY = currentCaretY = getInsets().top;
// Stuff to highlight the current line.