mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Fix start/end for range
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user