zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.56k stars 179 forks source link

`])` are treated as one character in ANSI encoding #746

Closed lifenjoiner closed 7 months ago

lifenjoiner commented 7 months ago

It seems 3c8699f missed something that caused this.

To reproduce:

  1. With code snippet:
    if (obj[0]) {}

    or just:

    ])
  2. Encoding -> ANSI or loading it with LoadASCIIasUTF8=0.

Also occurs on other bunches of 2 chars, like if.

zufuliu commented 7 months ago

Fixed by 61abd542df1fa13be0873c26e9c25991c78a819f,