Return undefined to ? fallback works

This commit is contained in:
Kevin Sawicki
2014-08-29 09:42:01 -07:00
parent 7cd080786c
commit d870cb8f36

View File

@@ -836,7 +836,7 @@ class Editor extends Model
continue if @displayBuffer.tokenizedBuffer.lineForScreenRow(bufferRow).isComment()
if match = @buffer.lineForRow(bufferRow).match(/^[ \t]/)
return match[0][0] is ' '
false
undefined
# Public: Returns a {Boolean} indicating whether softTabs are enabled for this
# editor.
@@ -872,8 +872,6 @@ class Editor extends Model
return unless @getSoftTabs()
@scanInBufferRange /\t/g, bufferRange, ({replace}) => replace(@getTabText())
###
Section: Soft Wrap Behavior
###