(pos, old, nw)
| 6424 | } |
| 6425 | |
| 6426 | function offsetPos(pos, old, nw) { |
| 6427 | if (pos.line == old.line) { |
| 6428 | return Pos(nw.line, pos.ch - old.ch + nw.ch) |
| 6429 | } else { |
| 6430 | return Pos(nw.line + (pos.line - old.line), pos.ch) |
| 6431 | } |
| 6432 | } |
| 6433 | |
| 6434 | // Used by replaceSelections to allow moving the selection to the |
| 6435 | // start or around the replaced test. Hint may be "start" or "around". |
no test coverage detected