Menu

Problem with Editor.gotoLine(line)

Help
Piotr
2017-11-13
2017-11-13
  • Piotr

    Piotr - 2017-11-13

    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

     
  • Sasumner

    Sasumner - 2017-11-14

    FWIW, it works correctly for me from a .py file...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.