"""
Insert_Live_Above.py - A Jython macro for jEdit which is similar to  
Vim's ``O`` command.  It inserts a new line above the current one, 
moves the caret to the new line, and indents if appropriate.

Copyright (C) 2003 Ollie Rutherfurd <oliver@rutherfurd.net>

$Id: Insert_Line_Above.py 57 2003-11-03 21:35:03Z oliver $
"""

def insertLiveAbove(textArea):
	textArea.goToPrevLine(0)
	textArea.goToEndOfWhiteSpace(0)
	textArea.insertEnterAndIndent()


if __name__ in ('__main__','main'):
	insertLiveAbove(init.textArea)

# :indentSize=4:lineSeparator=\n:noTabs=false:tabSize=4:

