Changeset 403
- Timestamp:
- 09/27/08 13:45:19 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jasko.tim.lisp/src/jasko/tim/lisp/editors/autoedits/LispIndentOnTab.java
r302 r403 7 7 import org.eclipse.jface.text.IAutoEditStrategy; 8 8 import org.eclipse.jface.text.IDocument; 9 import org.eclipse.jface.text.ITextSelection; 9 10 10 11 public class LispIndentOnTab implements IAutoEditStrategy { 11 12 12 13 private void cmdEnd(DocumentCommand c, int offset){ 13 14 c.shiftsCaret = false; … … 38 39 IndentAction.doIndent(topLvlRange[0], topLvlRange[1], d,c.offset); 39 40 cmdEnd(c,offsets[2]); 40 } 41 } else { 42 // Just indent the line we're on if parens aren't balancing yet 43 int newOffset[] = IndentAction.doIndent(c.offset, 0, d, c.offset); 44 cmdEnd(c, newOffset[2]); 45 } 41 46 } 42 47 }
