small edits to text editor from writing a python editor extension.
[blender.git] / release / scripts / op / console_shell.py
index e269cc0bb2ffd179bcb048a1ede9128744aa3cf2..2c5b48acd34b2ff4a7fc8d6a97833c1318b5b50b 100644 (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'}