diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index e3d1cdcac..505e854fb 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1901,8 +1901,9 @@ bool Notepad_plus::fileRename(BufferID id) // So just rename the tab and rename the backup file too if applicable // https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file - // Reserved characters: < > : " / \ | ? * - std::wstring reservedChars = TEXT("<>:\"/\\|\?*"); + // Reserved characters: < > : " / \ | ? * tab + // ("tab" is not in the official list, but it is good to avoid it) + std::wstring reservedChars = TEXT("<>:\"/\\|\?*\t"); std::wstring staticName = _nativeLangSpeaker.getLocalizedStrFromID("tabrename-newname", L"New name");