mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-20 21:13:25 +08:00
+ fix: Alt+W (strip trailing blanks) should work w/o selection
This commit is contained in:
parent
393af3a090
commit
8c6b5a72af
@ -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