Fix Save function in Windows dialog

Fix #8455, close #8478
This commit is contained in:
Udo Hoffmann 2020-06-25 17:39:51 +02:00 committed by Don HO
parent 930873a957
commit 5e2e167d3e
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2479,7 +2479,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
//loop through nmdlg->nItems, get index and save it //loop through nmdlg->nItems, get index and save it
for (unsigned int i = 0; i < nmdlg->nItems; ++i) for (unsigned int i = 0; i < nmdlg->nItems; ++i)
{ {
fileSave(_pDocTab->getBufferByIndex(i)); fileSave(_pDocTab->getBufferByIndex(nmdlg->Items[i]));
} }
nmdlg->processed = TRUE; nmdlg->processed = TRUE;
break; break;