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

Method ThinRectangularRange

scintilla/src/Editor.cxx:818–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void Editor::ThinRectangularRange()
819{
820 if ( sel.IsRectangular() ) {
821 sel.selType = Selection::selThin;
822 if ( sel.Rectangular().caret < sel.Rectangular().anchor ) {
823 sel.Rectangular() = SelectionRange ( sel.Range ( sel.Count() - 1 ).caret, sel.Range ( 0 ).anchor );
824 } else {
825 sel.Rectangular() = SelectionRange ( sel.Range ( sel.Count() - 1 ).anchor, sel.Range ( 0 ).caret );
826 }
827 SetRectangularRange();
828 }
829}
830
831void Editor::InvalidateSelection ( SelectionRange newMain, bool invalidateWholeSelection )
832{

Callers

nothing calls this directly

Calls 4

SelectionRangeClass · 0.85
IsRectangularMethod · 0.80
RangeMethod · 0.80
CountMethod · 0.45

Tested by

no test coverage detected