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

Method DelCharBack

scintilla/src/Document.cxx:1053–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053void Document::DelCharBack(int pos) {
1054 if (pos <= 0) {
1055 return;
1056 } else if (IsCrLf(pos - 2)) {
1057 DeleteChars(pos - 2, 2);
1058 } else if (dbcsCodePage) {
1059 int startChar = NextPosition(pos, -1);
1060 DeleteChars(startChar, pos - startChar);
1061 } else {
1062 DeleteChars(pos - 1, 1);
1063 }
1064}
1065
1066static int NextTab(int pos, int tabSize) {
1067 return ((pos / tabSize) + 1) * tabSize;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected