Bug 41849 [typing] LinkedPositionManager sets illegal positions
Eclipse: 200308201005 on Mac OS X Jaguar Files I'm editing and saving are not being saved to disk. There are no errors in the logs. It appears that this is an editor problem, because the compiler compiles what is on disk. Chang
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionManager.java
Position position= findCurrentPosition(positions, offset);
		if (position == null)
			return false;
		
		return includes(position, offset, length);
	}
	
	/**
	 * Returns the position that includes the given range.
	 * @param offset
	 * @param length
	 * @return position that includes the given range
	 */
	public Position getEmbracingPosition(int offset, int length) {
		Position[] positions= getPositions(fDocument);
		Position position= findCurrentPosition(positions, offset);
		if (position != null && includes(position, offset, length))
			return position;
			
		return null;
	}
	
	/*
	 * @see org.eclipse.jface.text.IAutoIndentStrategy#customizeDocumentCommand(org.eclipse.jface.text.IDocument, org.eclipse.jface.text.DocumentCommand)
	 */
	public void customizeDocumentCommand(IDocument document, DocumentCommand command) {
		
		if (command.getCommandCount() != 1) {
			leave(true);
			return;