Community
    • Login

    Eventual bugs in plugins with Notepad++ v8.4.x

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    1 Posts 1 Posters 677 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • donhoD
      donho
      last edited by donho

      I’ve got some complains for the issues of some plugins with Notepad++ v8.4.x - these plugins in question have no problem with Notepad++ v8.3.3, so users think it’s a Notepad++ regression.

      It’s due to updating Scintilla (one of components used by Notepad++) since v8.4.
      The bug doesn’t come from Notepad++ : Scintilla has had changed the behaviour of its API SCI_GETTEXT, SCI_GETSELTEXT, and SCI_GETCURLINE from version 4 to version 5, hence this problem:
      https://c.tenor.com/D3crwiCIM48AAAAd/awkward-handshake-chess.gif

      For plugins which use SCI_GETTEXT, SCI_GETSELTEXT, and SCI_GETCURLINE, the fix of this problem is to add 1 (character) to the length result of these 3 API, to make the plugin rework correctly under Notepad++ v8.4 and later versions.

      Related information:

      1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11639#issuecomment-1121180121
      2. https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11673
      3. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11661
      4. https://github.com/npp-plugins/mimetools/commit/e9a36d1c306a1dc03204032526ae23a3a03db218
      1 Reply Last reply Reply Quote 4
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors