mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Return undefined to ? fallback works
This commit is contained in:
@@ -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
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user