diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 6ed45566..fd52df56 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -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 for (unsigned int i = 0; i < nmdlg->nItems; ++i) { - fileSave(_pDocTab->getBufferByIndex(i)); + fileSave(_pDocTab->getBufferByIndex(nmdlg->Items[i])); } nmdlg->processed = TRUE; break;