Notepad++ 7.9.1 Released



  • Notepad++ v7.9.1 is available:
    https://notepad-plus-plus.org/news/v791-pour-samuel-paty/

    Notepad++ v7.9.1 new features & bug-fixes:

    1. Fix NUL file-corruption bug after Windows shutdown brutally (Fix #6133).
    2. Fix inaccurate URL detection by replacing a new URL parser (Fix #3912, #3353, #4643, #5029, #6155, #7791, #8634)
    3. Fix RegEx look behind operations and \A and and \b and \z (Fix #713, #1870, #2216, #2360, #9004, #4855).
    4. Split functionList.xml into multifile in “functionList” Folder (Implement #4896).
    5. Make tray icon work again in administrator mode (Fix #8528).
    6. Fix dialogs & floating dockable panels don’t minimize to system tray issue (Fix #9044, #8928).
    7. Add alternative icon set for tab bar (Implement #8068).
    8. Add ability to remove any duplicate lines in a document, keeping the first occurrence (Fix #8965).
    9. Fix incorrect icon for monitoring status in Document list panel and in Document switcher (Fix #8783).
    10. Add copy marked text & styled text to clipboard commands to menu (Implement #8943, #6095).
    11. Fix find-all-open-docs not finding all matches in ANSI files (Fix #8901).
    12. Display long lines better in Find-result panel by increasing its max length to 2048 (Fix #7723).
    13. Fix double clicking on find result line not working (Fix #9009, #8525).
    14. Fix Find-result rclick-Copy incomplete data bug (Fix #8801).
    15. Add case insensitive lines sorting (Implement #4479).
    16. Add “Open Containing Folder as Workspace” command in main menu and in context menu of tabs (Implement #3028).
    17. Enhance Sel info of status bar (Fix #8524).
    18. Add new option for save type of normal text files in Save dialog (Fix #8866).
    19. Fix file path truncated issue in save confirmation dialog (Fix #8812).
    20. Fix auto-Indent not working for PowerShell (Fix #9049).
    21. Allow setting of background color for bookmark margin (Fix #8833).
    22. Fix smart-highlighting not applying to cloned view (Fix #7910).
    23. Fix smart highlight issue related to EOF (Fix #8908).
    24. Fix closing file in 2nd view not removed from Doc Switcher (Fix #8800).
    25. Add Delete keystroke to remove selected root from Folder as Workspace (Fix #8960).
    26. Add TAB keystroke in Function List to switch between search field and list (Fix #8665).
    27. Add ESC keystroke in Function List to switch to edit window (Fix #8886).
    28. Add ESC keystroke to close Search Results Window (Implement #2946).
    29. Fix data-prefixed attributes are not recognized in HTML (Fix #6200).


  • This install ruined my previous one…

    autoCompletion folder and everything inside, gone.
    functionList folder is new, what’s this?
    userDefinedLang-markdown.default.modern file, gone.
    markdown._preinstalled.udl file new, what’s this?
    contextMenu.xml file, has been overwritten, lost my settings…



  • @ImSpecial said in Notepad++ 7.9.1 Released:

    This install ruined my previous one…

    I’m surprised. The installer of this version is like other versions basically.

    autoCompletion folder and everything inside, gone.

    (Just did an installation of new release)
    Not for me - autoCompletion folder is always in Notepad++ installation folder and it works fine.

    functionList folder is new, what’s this?

    Read the change log.

    userDefinedLang-markdown.default.modern file, gone.
    markdown._preinstalled.udl file new, what’s this?

    Doesn’t the file name ring your bell?

    contextMenu.xml file, has been overwritten, lost my settings…

    This part nether, I didn’t change it.



  • Automatic TAB indentation in C source file after if ( condition ) is not working for me anymore, had to downgrade to 7.9. Not sure if it is a new setting. Did not test with anything else like cycles, because I downgraded immediately, after realizing it works on my laptop with 7.9.



  • @Petr-Stránský said in Notepad++ 7.9.1 Released:

    Automatic TAB indentation in C source file after if ( condition ) is not working for me anymore, had to downgrade to 7.9. Not sure if it is a new setting. Did not test with anything else like cycles, because I downgraded immediately, after realizing it works on my laptop with 7.9.

    Do you mean that:
    v7.9.1

    if (condition)
    // position after ENTER
    

    v7.9

    if (condition)
        // position after ENTER
    

    ?



  • @Petr-Stránský @donho

    I tested the “Automatic TAB indentation” issue and it is as Petr wrote.
    If I do if() and press Enter in v 7.9 auto indent works, but in 7.9.1 the indentation is not done.

    My test code looks like this:

    int main(void)
    {
        if()
    
        return 0;
    }
    


  • @donho said in Notepad++ 7.9.1 Released:

    Do you mean that:

    No, it appears to be the opposite. In fact, my commit for the PowerShell auto-indent seems to have broken it, but I’m puzzled as to why since we only added PowerShell to the full if() list and then to the case where Perl and Rust are for their auto-indent after the { open brace.

    Using the AppVeyor artifact from just before that commit and selecting C language:

    if (test)
        |
    

    Cursor is placed on the line after the if indented and without the need for the { open brace since C does not required braces for single-line if statements.

    Using the artifact from the commit referenced above and any later version, the following undesired behavior results:

    if (test)
    |
    

    Cursor on the following line is not indented.

    Cheers.



  • @Michael-Vincent said in Notepad++ 7.9.1 Released:

    but I’m puzzled as to why since we only added PowerShell to the full if() list and then to the case where Perl and Rust are for their auto-indent after the { open brace.

    FOUND IT! Issuing a new PR to fix.



  • @Michael-Vincent said in Notepad++ 7.9.1 Released:

    FOUND IT! Issuing a new PR to fix.

    Issue: 9113
    PR: 9114

    Cheers.





  • @donho said in Notepad++ 7.9.1 Released:

    @Michael-Vincent Could you test it?

    I did just before I issued the PR and I certainly will with the AppVeyor build once it finishes - (still building as I type). It was such a stupid mistake, sorry for the troubles.

    Cheers.



  • @donho
    @Michael-Vincent said in Notepad++ 7.9.1 Released:

    I certainly will with the AppVeyor build once it finishes

    I just tested both Release versions x86 and x64:

    Environment: platform=Win32, archi=x86, platform_input=Win32; Configuration: Unicode Release
    Environment: platform=x64, archi=amd64, platform_input=x64; Configuration: Unicode Release

    Both perform as expected!

    I set language to C and did:

    if (test)
        |
    
    if (test) {
        |
    }
    
    if (test)
    {
        |
    }
    

    All behaved as expected. I also set language to C++, Java and Javascript and ran the same typing tests to make sure they behave the same way - and they do.

    Finally, set language to both Perl and PowerShell and did the same above tests and they result in:

    if (test)
    |
    
    if (test) {
        |
    }
    
    if (test)
    {
        |
    }
    

    As expected. NOTE: the first case shows no indent since in both Perl and PowerShell, the { brace is required for the control block to activate auto-indent.

    I tried ALL THE ABOVE in 7.9 as well, and all behavior is consistent between 7.9 and the latest AppVeyor build for all my above test cases (with the exception of PowerShell on 7.9 since adding the original fix in 7.9.1 for PowerShell is what triggered this).

    I believe we have fixed this regression. Again, sorry for the troubles and thank you for the quick response!

    Cheers.



  • No problem, @Michael-Vincent , it was my fault - I didn’t get my code review job done well.

    That said, it’s still a small regression: comparing with the fix of corrupted file by @pnedev, this regression is less important. So I guess I’ll still trigger auto-update for v7.9.1 in about 1 week, if there’s no other critical regression/bug found.



  • This is probably a minor bug, but it would be nice if will be fixed.

    For C and C++ code the Show Indent Guide functionality wrongly displays indent line if the selection statements (if and else) contain only one expression without curly braces.

    Example:

    Indent line for if statement goes until return which is wrong.
    if.png

    Indent line for else statement goes until return which is wrong.
    else.png

    If braces are used the indent line goes until expected
    if_brace.png



  • @Zsolt-Kántor-0 said in Notepad++ 7.9.1 Released:

    This is probably a minor bug, but it would be nice if will be fixed.

    I can confirm. This is also present in 7.9 so no 7.9.1 “fixes” introduced this it would seem.

    674c7700-876b-41bd-a2f9-bda8ecdbfa04-image.png

    In fact, I see it as far back as 7.3.3:

    42a97dfd-461b-4ca0-9d06-d884ecb94717-image.png

    Cheers.



  • @Zsolt-Kántor-0 said in Notepad++ 7.9.1 Released:

    This is probably a minor bug, but it would be nice if will be fixed.

    Seems like a Scintilla thing for indentation. Testing various settings, it seems SC_IV_LOOKFORWARD works best for all languages despite what the docs say:

    a35ce6e3-028c-417c-9e95-baa6681ddec9-image.png

    Cheers.



  • @Michael-Vincent

    Then it should be fixed in Notepad++, maybe?



  • @Zsolt-Kántor-0 said in Notepad++ 7.9.1 Released:

    @Michael-Vincent

    Then it should be fixed in Notepad++, maybe?

    Perhaps. There is a FAQ in this Forum which explains feature requests.

    However, there is a plugin, ExtSettings, which allows you to change such Scintilla settings without using a scripting environment like the NppExec example that @Michael-Vincent showed. You can install that plugin using Plugins Admin, and this specific setting is controlled by Indentation guide style 550f54de-0300-4d4c-8997-d7a6bb432efe-image.png – you have to hit Close after each change in that dialog to get it to take effect.



  • @PeterJones said in Notepad++ 7.9.1 Released:

    Perhaps. There is a FAQ in this Forum which explains feature requests.

    Thanks for the hints, but this is a bug in my opinion and not a feature request.



  • @Zsolt-Kántor-0 said in Notepad++ 7.9.1 Released:

    @PeterJones said in Notepad++ 7.9.1 Released:

    Perhaps. There is a FAQ in this Forum which explains feature requests.

    Thanks for the hints, but this is a bug in my opinion and not a feature request.

    And if you had looked at the “FAQ Desk: Feature Request or Bug Report”, you would have seen that bug reports go in the same place as feature requests.

    This discussion topic (“Notepad++ 7.9.1 Released”) is meant for problems introduced in v7.9.1 that weren’t present in v7.9 (known as “regressions”). If you can prove that this is a regression, then feel free to continue here. Otherwise, the general bug reporting and feature requesting is handled as described in the FAQ. (And really, even if it is a “regression”, at this point, the bug reporting is more likely to get implemented than more discussion here.)


Log in to reply