boolean (Editor editor, int charCountToWrapAt, int visibleLineCount) { int charWidthInPixels = 10; // we're adding 1 to charCountToWrapAt, to account for wrap character width, and 1 to overall width to overcome wrapping logic subtleties return configureSoftWraps(editor, (charCountToWrapAt + 1) * charWidthInPixels + 1, visibleLineCount * editor.getLineHeight(), charWidthInPixels); }