mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
Merge pull request #2554 from RaiKoHoff/Dev_Release
Alt+W (strip trailing blanks) should work w/o selection
This commit is contained in:
commit
8a07e15c4d
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user