else { int nextLine = buffer.getNextVisibleLine(line); caret = getLineStartOffset(nextLine); }
caret = getLineStartOffset(nextLine);
	public void goToNextWord(boolean select)	{		int caret = getCaretPosition();		int line = getCaretLine();		int lineStart = getLineStartOffset(line);		caret -= lineStart;		String lineText = getLineText(line);		if(caret == lineText.length())		{			if(lineStart + caret == buffer.getLength())			{				getToolkit().beep();				return;			}			else			{				int nextLine = buffer.getNextVisibleLine(line);				caret = getLineStartOffset(nextLine);			}		}		else		{			String noWordSep = (String)buffer.getProperty("noWordSep");			caret = TextUtilities.findWordEnd(lineText,caret + 1,noWordSep)				+ lineStart;		}		if(select)			select(getMarkPosition(),caret);		else			setCaretPosition(caret);	}