Open chcg opened 6 years ago
One file content is : 0x30 0x00 0x02 0x30 when copy all content to other page,result is 0x30 0x20 0x02 0x30 please see this bug
HexEdit doesn't keep the current encoding
Meaning .. ?
@KnIfER Switch from N++ view with encoding UTF-8 -> Hexview -> N++ and then the encoding is no longer UTF-8, but ANSI. See encoding menu or statusline.
issue with cloned view still happens
the old plugin uses vector
to record all opened file for each editor( left and right), which is is unnecessary and error-prone.
I turned it in to a map.
There are plenty of bugs in the old impl. Editors flash heavely during doc-switching, F11 & F12 crash npp in the x64 mode, and redundant calls into SystemUpdate
make it even worse when you are comparing left & right docs.
Just use std::map
and it will save our lives……
( Incorrect doc switching to hex mode )
The cause of the bug is that when npp opens new files, it notify HexEditor of the events ( NPPN_FILEOPENED
) before switching to the newly opened file.
See https://sourceforge.net/p/npp-plugins/discussion/670932/thread/ba91fc4d/