From 1a8986aae2f5d0035252e4761879ee76b6bd1913 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 30 Jan 2013 08:02:19 -0800 Subject: [PATCH] Fix start/end for range --- src/app/cursor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/cursor.coffee b/src/app/cursor.coffee index c3e0a0591..bf6e058ae 100644 --- a/src/app/cursor.coffee +++ b/src/app/cursor.coffee @@ -64,7 +64,7 @@ class Cursor isSurroundedByWhitespace: -> {row, column} = @getBufferPosition() - range = [[row, column + 1], [row, Math.max(0, column - 1)]] + range = [[row, Math.min(0, column - 1)], [row, Math.max(0, column + 1)]] /^\s+$/.test @editSession.getTextInBufferRange(range) autoscrolled: ->