👕 Fix new coffeelint errors

This commit is contained in:
Machiste Quintana
2015-04-06 23:45:02 -04:00
parent 9b8d7d46fe
commit 5d2392ea67
41 changed files with 150 additions and 146 deletions

View File

@@ -949,14 +949,14 @@ class TextEditor extends Model
# For each selection, if the selection is empty, converts the containing word
# to upper case. Otherwise convert the selected text to upper case.
upperCase: ->
@replaceSelectedText selectWordIfEmpty:true, (text) -> text.toUpperCase()
@replaceSelectedText selectWordIfEmpty: true, (text) -> text.toUpperCase()
# Extended: Convert the selected text to lower case.
#
# For each selection, if the selection is empty, converts the containing word
# to upper case. Otherwise convert the selected text to upper case.
lowerCase: ->
@replaceSelectedText selectWordIfEmpty:true, (text) -> text.toLowerCase()
@replaceSelectedText selectWordIfEmpty: true, (text) -> text.toLowerCase()
# Extended: Toggle line comments for rows intersecting selections.
#
@@ -2464,7 +2464,7 @@ class TextEditor extends Model
{cursor} = selection
if indentBasis?
containsNewlines = text.indexOf('\n') isnt -1
if containsNewlines or !cursor.hasPrecedingCharactersOnLine()
if containsNewlines or not cursor.hasPrecedingCharactersOnLine()
options.indentBasis ?= indentBasis
if fullLine and selection.isEmpty()