Bug with Word Wrapping function



  • Hello!
    Please relocate the post to the appropriate section if this is not the correct one.

    I have found a bug in Notepad++ connected to Word Wrap function. When you paste (and probably type, or delete as well) some text to Notepad++ and the Word Wrap function is enabled, there can be situations in which it enters the infinite loop with word wrapping and the vertical scroll appears to change its “fullness” between 100% and (in my case) ~90%. During this cycle if you switch to another tab and then switch back, all tabs disappear (tabs are not rendered) - probably because they are rendered after the word wrap reflow or something.

    I can’t explain it better, just check these screenshots:
    https://www.dropbox.com/s/d12raq90xdmp57q/npp_bug_1.png?dl=0
    https://www.dropbox.com/s/81aq22p43exk723/npp_bug_2.png?dl=0

    Also, I’ve made a video to show the exact behavior:
    https://youtu.be/DpkKt-JcOdE

    I don’t know for sure, but it’s probably somehow might be connected to the fact that when wrapping function is executed the scroll is present, and after the execution it probably disappears, thus forcing it to re-wrap or something.

    Steps to reproduce:

    1. Enable Word Wrap
    2. Resize the viewport to have the size as on the screenshots (probably will work with somewhat different sizes as well)
    3. Paste the text from this text file (or open in in notepad):
      https://www.dropbox.com/s/2ys0gx6as8ca9yn/npp_bug.txt?dl=0

Log in to reply