+ fix: small bugfixes

This commit is contained in:
Rainer Kottenhoff 2019-05-25 22:30:07 +02:00
parent 1d2e5bd96d
commit deb69eb342
2 changed files with 14 additions and 1 deletions

View File

@ -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:

View File

@ -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;