MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / trackInsertion

Method trackInsertion

src/SelectionTracker.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void SelectionTracker::trackInsertion(int pos, int length)
46{
47 if (caret >= pos) {
48 caret += length;
49 }
50 if (anchor >=pos) {
51 anchor += length;
52 }
53}
54
55void SelectionTracker::trackDeletion(int pos, int length)
56{

Callers 2

toggleLineMethod · 0.80
commentLineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected