diff --git a/src/app/anchor.coffee b/src/app/anchor.coffee index a6a236ff5..ab78f9a0d 100644 --- a/src/app/anchor.coffee +++ b/src/app/anchor.coffee @@ -47,7 +47,7 @@ class Anchor assignBufferPosition = options.assignBufferPosition ? true @screenPosition = @editor.clipScreenPosition(@screenPosition, options) if clip - @bufferPosition = @editor.bufferPositionForScreenPosition(position, options) if assignBufferPosition + @bufferPosition = @editor.bufferPositionForScreenPosition(@screenPosition, options) if assignBufferPosition Object.freeze @screenPosition Object.freeze @bufferPosition