line cache for textpane