From 5fc9f68b47b2b8da29cb290d163a9a93f454f044 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 10 Feb 2012 12:51:32 -0700 Subject: [PATCH] Fix bug that happened to pass specs. --- src/atom/line-wrapper.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom/line-wrapper.coffee b/src/atom/line-wrapper.coffee index b58f72c8f..26940c9cf 100644 --- a/src/atom/line-wrapper.coffee +++ b/src/atom/line-wrapper.coffee @@ -81,7 +81,7 @@ class LineWrapper lineLength = lineText.length return lineLength unless lineLength > @maxLength - if /\s/.test(tokensText[@maxLength]) + if /\s/.test(lineText[@maxLength]) # search forward for the start of a word past the boundary for column in [@maxLength..lineLength] return column if /\S/.test(lineText[column])