int caretLine = getCaretLine(); updateBracketHighlight(caretLine,getCaretPosition() - getLineStartOffset(caretLine));
updateBracketHighlight();
		public void insertUpdate(DocumentEvent evt)		{			documentChanged(evt);			if(!buffer.isLoaded())				return;			int offset = evt.getOffset();			int length = evt.getLength();			int newStart;			int newEnd;			boolean change = false;			if(selectionStart > offset || (selectionStart 				== selectionEnd && selectionStart == offset))			{				change = true;				newStart = selectionStart + length;			}			else				newStart = selectionStart;			if(selectionEnd >= offset)			{				change = true;				newEnd = selectionEnd + length;			}			else				newEnd = selectionEnd;			if(change)				select(newStart,newEnd,true);			else			{				int caretLine = getCaretLine();				updateBracketHighlight(caretLine,getCaretPosition()					- getLineStartOffset(caretLine));			}		}