You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
315 B
12 lines
315 B
'use strict' |
|
|
|
// Note! `move` only works inside lines! It’s not possible to move past other |
|
// chunks (replacement characters, tabs, or line endings). |
|
function movePoint(point, offset) { |
|
point.column += offset |
|
point.offset += offset |
|
point._bufferIndex += offset |
|
return point |
|
} |
|
|
|
module.exports = movePoint
|
|
|