Notepad++ release 8.9.8.1
-
Typo at 24 “not not”
-
-
In Windows 7, there is no confirmation dialog for the “Move file to Recycle Bin” action.
In Windows 10, the confirmation dialog for “Move file to Recycle Bin” is present.Is this by design, or is it a bug?

-
I cannot reproduce your issue. Reload the file after some changes in text, it’s still working for me:

-
@donho
I uplad file.
I cannot isolate the regression conditions.
But you can repeat his with his file.
Text file for teproduction
Video… -
In Windows 7, there is no confirmation dialog for the “Move file to Recycle Bin” action.
In Windows 10, the confirmation dialog for “Move file to Recycle Bin” is present.It’s due to:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/NppIO.cpp#L2357winVer winVersion = (NppParameters::getInstance()).getWinVersion(); bool goAhead = true; if (winVersion >= WV_WIN8 || winVersion == WV_UNKNOWN) { // Windows 8 (and version after?) has no system alert, so we ask user's confirmation goAhead = (doDeleteOrNot(fileNamePath) == IDOK); } if (goAhead) { ... if (!MainFileManager.deleteFile(bufferID)) { ...Is this by design, or is it a bug?
So it was by design. However, a modification was added in
deleteFileabout one year ago, by @xomx :fileOpStruct.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION; // FOF_NOCONFIRMATION - prevent possible redundant shell-dlg (Notepad++ uses its own delete-confirmation dlg)That disables the OS popup while calling
SHFileOperation.As a result, I think it’s safe to remove OS detection and display Notepad++ build-in warning dialog unconditionally.
I’ll do a commit to fix it.
-
donho said:
As a result, I think it’s safe to remove OS detection and display Notepad++ build-in warning dialog unconditionally.
I’ll do a commit to fix it.
The issue is fixed in the master. The fix will be in the next release:
https://github.com/notepad-plus-plus/notepad-plus-plus/commit/ee0106b823575715842e4b45939ee355b8610ecf -
@Artur-Harison
Still cannot reproduce your issue with the file you provided.Before

After

Is it rather a plugin issue?
-
Still cannot reproduce your issue with the file you provided.
@Artur-Harison said:
Autodetect encode offWith Audodetect character encoding not checked, Notepad++ sees the file as ANSI.
I think Artur’s complaint is that, after selecting Encoding | UTF-8 and then reloading the file, the explicitly set encoding does not stick; Notepad++ reverts to the encoding it “thinks” the file should be (ANSI).
I don’t know if that counts as a bug or as expected behavior.
-
@Coises
1 file in utf-8
2 file opened in utf-8
3 after refresh, file toggled in ANSI
————-
@donho
You don’t need to change the file.
Need just open it and reload from disc.Strange behavior. If you add spacebar anywere
Problem is gone. If again delete space, problem back. O_o
But it’s work a long 1401 line.
If edit after, problem remain.All plugs off.
X64
Win10
Auto encode off. -
@Coises
1 file in utf-8
2 file opened in utf-8
3 after refresh, file toggled in ANSII don’t get quite the same result. If I open your test file, Notepad++ thinks it is “ANSI.” I have to change it to UTF-8 using the Encoding menu.
Strange behavior. If you add spacebar anywere
Problem is gone.That is almost certainly this bug.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login