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
target.setRedraw(false);
					}
					
					try {
						JavaHeuristicScanner scanner= new JavaHeuristicScanner(document);
						JavaIndenter indenter= new JavaIndenter(document, scanner);
						int newOffset= offset;
						for (int i= 0; i < nLines; i++) {
							newOffset= indentLine(document, firstLine + i, indenter, scanner);
						}
						
						
						
						int newLength= 0;
						if (nLines > 1) {
							newOffset= offset;
							newLength= end.getOffset() - offset;
						}
						
						Assert.isTrue(newLength >= 0);
						Assert.isTrue(newOffset >= 0);
						
						
						if (offset != newOffset || length != newLength)
							
							getTextEditor().selectAndReveal(newOffset, newLength);
						
						document.removePosition(end);
					} catch (BadLocationException e) {