Enlarge your name field size!

Rename current tab & Rename User Language name could be up to 63 characters now!
(Before this implementation the limit size is about 20 characters)

Fix #10961, fix #9849, close
This commit is contained in:
Don Ho 2021-12-29 04:05:01 +01:00
parent 4a7a33f010
commit c0989d472c
2 changed files with 2 additions and 2 deletions

View File

@ -1782,7 +1782,7 @@ bool Notepad_plus::fileRename(BufferID id)
StringDlg strDlg; StringDlg strDlg;
generic_string title = _nativeLangSpeaker.getLocalizedStrFromID("tabrename-title", TEXT("Rename Current Tab")); generic_string title = _nativeLangSpeaker.getLocalizedStrFromID("tabrename-title", TEXT("Rename Current Tab"));
strDlg.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), title.c_str(), staticName.c_str(), buf->getFileName(), 0, reservedChars.c_str(), true); strDlg.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), title.c_str(), staticName.c_str(), buf->getFileName(), langNameLenMax - 1, reservedChars.c_str(), true);
TCHAR *tabNewName = reinterpret_cast<TCHAR *>(strDlg.doDialog()); TCHAR *tabNewName = reinterpret_cast<TCHAR *>(strDlg.doDialog());
if (tabNewName) if (tabNewName)

View File

@ -244,7 +244,7 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSM
FONT 8, "MS Shell Dlg", 0, 0, 0x1 FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN BEGIN
LTEXT "STATIC :",IDC_STRING_STATIC,6,4,42,8,0,WS_EX_RIGHT LTEXT "STATIC :",IDC_STRING_STATIC,6,4,42,8,0,WS_EX_RIGHT
EDITTEXT IDC_STRING_EDIT,49,2,88,14 EDITTEXT IDC_STRING_EDIT,49,2,88,14,ES_AUTOHSCROLL
PUSHBUTTON "OK",IDOK,20,26,50,14 PUSHBUTTON "OK",IDOK,20,26,50,14
PUSHBUTTON "Cancel",IDCANCEL,87,26,50,14 PUSHBUTTON "Cancel",IDCANCEL,87,26,50,14
END END