From 10f48e36ad34195adb02acbf9acbc77fdef8a842 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 19 May 2022 19:32:35 +0200 Subject: [PATCH] Fix typos --- PowerEditor/src/Notepad_plus.cpp | 2 +- PowerEditor/src/NppBigSwitch.cpp | 2 +- PowerEditor/src/NppIO.cpp | 2 +- PowerEditor/src/ScintillaComponent/Buffer.cpp | 2 +- PowerEditor/src/ScintillaComponent/Buffer.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index c4687edea..e14e68f67 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -7474,7 +7474,7 @@ DWORD WINAPI Notepad_plus::threadTextPlayer(void *params) previousChar = text2display[i]; //char ch[64]; - //sprintf(ch, "writting char == %c", text2display[i]); + //sprintf(ch, "writing char == %c", text2display[i]); //writeLog(TEXT("c:\\tmp\\log.txt"), ch); } diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index bd746accd..76210029e 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -2172,7 +2172,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa { _nativeLangSpeaker.messageBox("SettingsOnCloudError", hwnd, - TEXT("It seems the path of settings on cloud is set on a read only drive,\ror on a folder needed privilege right for writting access.\rYour settings on cloud will be canceled. Please reset a coherent value via Preference dialog."), + TEXT("It seems the path of settings on cloud is set on a read only drive,\ror on a folder needed privilege right for writing access.\rYour settings on cloud will be canceled. Please reset a coherent value via Preference dialog."), TEXT("Settings on Cloud"), MB_OK | MB_APPLMODAL); nppParam.removeCloudChoice(); diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 85472c871..581f5b43a 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -559,7 +559,7 @@ bool Notepad_plus::doSave(BufferID id, const TCHAR * filename, bool isCopy) _pluginsManager.notify(&scnN); } - if (res == SavingStatus::SaveWrittingFailed) + if (res == SavingStatus::SaveWritingFailed) { _nativeLangSpeaker.messageBox("NotEnoughRoom4Saving", _pPublicInterface->getHSelf(), diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index d1437230b..be2499086 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -1165,7 +1165,7 @@ SavingStatus FileManager::saveBuffer(BufferID id, const TCHAR * filename, bool i if (!isWrittenSuccessful) { _pscratchTilla->execute(SCI_SETDOCPOINTER, 0, _scratchDocDefault); - return SavingStatus::SaveWrittingFailed; + return SavingStatus::SaveWritingFailed; } if (isHiddenOrSys) diff --git a/PowerEditor/src/ScintillaComponent/Buffer.h b/PowerEditor/src/ScintillaComponent/Buffer.h index 919bda713..7bcf4f5e4 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.h +++ b/PowerEditor/src/ScintillaComponent/Buffer.h @@ -54,7 +54,7 @@ enum BufferStatusInfo { enum SavingStatus { SaveOK = 0, SaveOpenFailed = 1, - SaveWrittingFailed = 2 + SaveWritingFailed = 2 }; const TCHAR UNTITLED_STR[] = TEXT("new ");