()
| 155 | } |
| 156 | |
| 157 | private deleteLineForward(): void { |
| 158 | if (this._cursor >= this._text.length) { |
| 159 | return; |
| 160 | } |
| 161 | |
| 162 | const nextNewline = this._text.indexOf("\n", this._cursor); |
| 163 | const lineEnd = nextNewline === -1 ? this._text.length : nextNewline; |
| 164 | |
| 165 | if (lineEnd === this._cursor) { |
| 166 | return; |
| 167 | } |
| 168 | |
| 169 | this._text = this._text.slice(0, this._cursor) + this._text.slice(lineEnd); |
| 170 | } |
| 171 | |
| 172 | moveToStart(): void { |
| 173 | this._cursor = 0; |
no outgoing calls
no test coverage detected