small edits to text editor from writing a python editor extension.

- rename TextLine.line -> body, ConsoleLine.line -> body
- minor speedups when setting the body text, also re-allocate console lines if they are < half the length.
- added option to highlight current line in the text editor.
This commit is contained in:
2010-08-11 05:21:43 +00:00
parent 8c39326962
commit d739a1788d
9 changed files with 69 additions and 47 deletions

View File

@@ -47,7 +47,7 @@ def execute(context):
sc = context.space_data
try:
line = sc.history[-1].line
line = sc.history[-1].body
except:
return {'CANCELLED'}