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

Method FixSelectionForClipboard

scintilla/src/Editor.h:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120private:
121 void FixSelectionForClipboard() {
122 // Replace null characters by spaces.
123 // To avoid that the content of the clipboard is truncated in the paste operation
124 // when the clipboard contains null characters.
125 for (int i = 0; i < len - 1; ++i) {
126 if (s[i] == '\0')
127 s[i] = ' ';
128 }
129 }
130};
131
132/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected