Merge pull request #2554 from RaiKoHoff/Dev_Release

Alt+W (strip trailing blanks) should work w/o selection
This commit is contained in:
Rainer Kottenhoff 2020-07-22 09:06:57 +02:00 committed by GitHub
commit 8a07e15c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3884,7 +3884,7 @@ void EditStripLastCharacter(HWND hwnd, bool bIgnoreSelection, bool bTrailingBlan
{
UNUSED(hwnd);
if (SciCall_IsSelectionEmpty() && !bIgnoreSelection) { return; }
if (SciCall_IsSelectionEmpty() && !(bIgnoreSelection || bTrailingBlanksOnly)) { return; }
DocPos const iSelStart = (SciCall_IsSelectionEmpty() || bIgnoreSelection) ? 0 : SciCall_GetSelectionStart();
DocPos const iSelEnd = (SciCall_IsSelectionEmpty() || bIgnoreSelection) ? Sci_GetDocEndPosition() : SciCall_GetSelectionEnd();

View File

@ -4307,7 +4307,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
case IDM_EDIT_PADWITHSPACES:
EditPadWithSpaces(Globals.hwndEdit,false,false);
EditPadWithSpaces(Globals.hwndEdit, false, false);
break;