Add initial TextEditor::setEncoding

This commit is contained in:
Kevin Sawicki 2014-10-27 17:39:45 -07:00
parent 4032d96b13
commit 4c9e71770a

View File

@ -2815,6 +2815,12 @@ class TextEditor extends Model
pixelRectForScreenRange: (screenRange) -> @displayBuffer.pixelRectForScreenRange(screenRange)
setEncoding: (encoding) ->
{file} = @buffer
file.setEncoding(encoding)
file.read(true).then =>
file.emitter.emit('did-change')
# Deprecated: Call {::joinLines} instead.
joinLine: ->
deprecate("Use TextEditor::joinLines() instead")