I have a problem with using gotoLine function.
When I use console and type:
editor.gotoLine(10)
Everything is fine and cursor is moved to line nr 10.
However when I create python script and use identical statement cursor is moved to 10th character of the document.
It looks like gotoLine from script is jumping through characters not lines.
My PythonScript version is 1.0.8.0 and NPP is 7.5.1 (32 bit).
Am I doing something wrong here or is it a bug?
Thanks,
Piotr
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All!
I have a problem with using gotoLine function.
When I use console and type:
editor.gotoLine(10)
Everything is fine and cursor is moved to line nr 10.
However when I create python script and use identical statement cursor is moved to 10th character of the document.
It looks like gotoLine from script is jumping through characters not lines.
My PythonScript version is 1.0.8.0 and NPP is 7.5.1 (32 bit).
Am I doing something wrong here or is it a bug?
Thanks,
Piotr
FWIW, it works correctly for me from a .py file...