mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Fix unsaved tab containing tab character display glitch
Disallow tab character via pasting when renaming a file tab. Fix #15202, close #15211
This commit is contained in:
parent
f37f2d0ffe
commit
721a845bec
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user