mirror of
https://github.com/atom/atom.git
synced 2026-02-06 04:34:55 -05:00
Skip leading space after colon in nak output
This was causing a spec to fail since the line text now had a leading space for all results since the separator before the line text is now ': ' instead of just ':'.
This commit is contained in:
@@ -24,9 +24,9 @@ class Operation
|
||||
|
||||
preview: ->
|
||||
range = @bufferRange
|
||||
prefix = @lineText[0...range.start.column + 1]
|
||||
match = @lineText[range.start.column + 1...range.end.column + 1]
|
||||
suffix = @lineText[range.end.column + 1..]
|
||||
prefix = @lineText[0...range.start.column]
|
||||
match = @lineText[range.start.column...range.end.column]
|
||||
suffix = @lineText[range.end.column..]
|
||||
|
||||
{prefix, suffix, match, range}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user