From 9b19b4512f39d6b29ccdb414dbce8a11e3f4eef2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 2 Apr 2013 13:53:49 -0700 Subject: [PATCH] Use getBufferRange() when previewing This is for the case where the marker may move between construction and previewing. --- src/packages/command-panel/lib/operation.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/command-panel/lib/operation.coffee b/src/packages/command-panel/lib/operation.coffee index af963d8ca..3dc17b29e 100644 --- a/src/packages/command-panel/lib/operation.coffee +++ b/src/packages/command-panel/lib/operation.coffee @@ -23,7 +23,7 @@ class Operation @getBufferRange() unless @preserveSelection preview: -> - range = @bufferRange + range = @getBufferRange() prefix = @lineText[0...range.start.column] match = @lineText[range.start.column...range.end.column] suffix = @lineText[range.end.column..]