mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ fix: small bugfixes
This commit is contained in:
parent
1d2e5bd96d
commit
deb69eb342
@ -5365,8 +5365,8 @@ static INT_PTR CALLBACK EditFindReplaceDlgProcW(HWND hwnd,UINT umsg,WPARAM wPara
|
||||
bool const bEnableReplInSel = !(SciCall_IsSelectionEmpty() || Sci_IsMultiOrRectangleSelection());
|
||||
DialogEnableWindow(hwnd, IDC_REPLACEINSEL, bEnableReplInSel);
|
||||
|
||||
_DelayMarkAll(hwnd, 50, s_InitialSearchStart);
|
||||
|
||||
_DelayMarkAll(hwnd, 0, s_InitialSearchStart);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@ -9804,6 +9804,19 @@ void RestoreAction(int token, DoAction doAct)
|
||||
}
|
||||
++i;
|
||||
}
|
||||
#else
|
||||
SciCall_SetIndicatorCurrent(INDIC_NP3_MARK_OCCURANCE);
|
||||
int const selCount = utarray_len(pSel->anchorPos_undo);
|
||||
pPosAnchor = NULL;
|
||||
pPosCur = NULL;
|
||||
int i = 0;
|
||||
while (i < selCount)
|
||||
{
|
||||
pPosAnchor = (DocPos*)((UNDO == doAct) ? utarray_next(pSel->anchorPos_undo, pPosAnchor) : utarray_next(pSel->anchorPos_redo, pPosAnchor));
|
||||
pPosCur = (DocPos*)((UNDO == doAct) ? utarray_next(pSel->curPos_undo, pPosCur) : utarray_next(pSel->curPos_redo, pPosCur));
|
||||
PostMessage(hwndedit, SCI_INDICATORFILLRANGE, (WPARAM)(*pPosAnchor), (LPARAM)(*pPosCur - *pPosAnchor));
|
||||
++i;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user