FIND in all files goes to the wrong line when editing



  • notepad.JPG

    just downloaded 7.9.1 and im having some issue heres how it occured…

    FIND (word) FIND ALL IN CURRENT DOCUMENT
    which it displays the selected word and line number related to it

    However when i double click on the line and make a change and double click on the next entry the Cursor is now 7 or 8 lines away from where it should be… example word on line 10 cursor moves to line 17



  • @Roy-Booth

    double click on the line and make a change and double click on the next entry the Cursor is now

    This is accepted behavior in Notepad++.
    When you change text after running a search, you shift the position of the hits that occur after it in the document.
    Search output is “static” – it is valid only for the exact data that it is run on.

    Thus you have a few choices:

    • don’t edit your document until you are done examining all of the hits (maybe not realistic depending upon your needs)

    • start editing at hits with the highest line number and work your way to lower line numbers (probably more reasonable)

    • rerun the same search after making edits to produce new results (workable but a bit onerous)



  • This post is deleted!

Log in to reply