move-point.js 236 B

123456789101112
  1. 'use strict'
  2. // chunks (replacement characters, tabs, or line endings).
  3. function movePoint(point, offset) {
  4. point.column += offset
  5. point.offset += offset
  6. point._bufferIndex += offset
  7. return point
  8. }
  9. module.exports = movePoint