diff options
Diffstat (limited to 'source/blender/python/intern/bpy_interface_run.c')
-rw-r--r-- | source/blender/python/intern/bpy_interface_run.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_interface_run.c b/source/blender/python/intern/bpy_interface_run.c index 8f7437ac1da..9299bd196e2 100644 --- a/source/blender/python/intern/bpy_interface_run.c +++ b/source/blender/python/intern/bpy_interface_run.c @@ -39,8 +39,7 @@ static void python_script_error_jump_text(Text *text, const char *filepath) { int lineno, lineno_end; int offset, offset_end; - python_script_error_jump(filepath, &lineno, &offset, &lineno_end, &offset_end); - if (lineno != -1) { + if (python_script_error_jump(filepath, &lineno, &offset, &lineno_end, &offset_end)) { /* Start at the end so cursor motion that looses the selection, * leaves the cursor from the most useful place. * Also, the end can't always be set, so don't give it priority. */ |