MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / HLS_Edit_selection_start

Function HLS_Edit_selection_start

src/HLSelection.c:604–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603
604VOID HLS_Edit_selection_start()
605{
606 // if mode already ON - then turn it OFF
607 if ( b_HL_edit_selection ) {
608 HLS_Edit_selection_stop ( HL_SE_APPLY );
609 return;
610 }
611 _hl_se_init = TRUE;
612 _hl_se_count = 0;
613 HLS_Highlight_turn ( );
614 _hl_se_init = FALSE;
615 if ( b_HL_edit_selection ) {
616 SendMessage ( hwndEdit , SCI_SETSEL , _hl_se_tr.chrg.cpMin , _hl_se_tr.chrg.cpMax );
617 SendMessage ( hwndEdit , SCI_BEGINUNDOACTION , 0, 0 );
618 _hl_se_exit = FALSE;
619 }
620}
621
622
623VOID HLS_Edit_selection_stop ( UINT mode )

Callers 1

MsgCommandFunction · 0.85

Calls 2

HLS_Edit_selection_stopFunction · 0.85
HLS_Highlight_turnFunction · 0.85

Tested by

no test coverage detected