| 119 | |
| 120 | private: |
| 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected