mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Add initial TextEditor::setEncoding
This commit is contained in:
parent
4032d96b13
commit
4c9e71770a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user