()
| 72 | } |
| 73 | |
| 74 | delete() { |
| 75 | let { cursor, input } = this.state; |
| 76 | if (cursor <= 0) return this.alert(); |
| 77 | this.input = `${input}`.slice(0, cursor - 1) + `${input}`.slice(cursor); |
| 78 | this.moveCursor(-1); |
| 79 | this.render(); |
| 80 | } |
| 81 | |
| 82 | deleteForward() { |
| 83 | let { cursor, input } = this.state; |
nothing calls this directly
no test coverage detected