Bug 43035 Smart Tab ends up at offset 0
Have a line that has an indent greater than it is required. Place cursor at the correct indent position. Press Tab. => Cursor ends up at the beginning of the document.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/IndentAction.java
} 
		
		
		if (indent == null)
			indent= indenter.computeIndentation(offset);
		
		
		if (indent == null)
			indent= new String();
		
		
		
		int lineLength= currentLine.getLength();
		int end= scanner.findNonWhitespaceForwardInAnyPartition(offset, offset + lineLength);
		int length;
		if (end == JavaHeuristicScanner.NOT_FOUND)
			length= lineLength;
		else
			length= end - offset;
		
		
		if (!indent.equals(document.get(offset, length)))
			document.replace(offset, length, indent);
		
		return offset + indent.length();
	}
	
	/**
	 * Returns the editor's selection provider.
	 *