mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Use TextEditor::update in TextEditorRegistry
This commit is contained in:
@@ -194,6 +194,27 @@ class TextEditor extends Model
|
||||
value = params[param]
|
||||
|
||||
switch param
|
||||
when 'autoIndent'
|
||||
@autoIndent = value
|
||||
|
||||
when 'autoIndentOnPaste'
|
||||
@autoIndentOnPaste = value
|
||||
|
||||
when 'undoGroupingInterval'
|
||||
@undoGroupingInterval = value
|
||||
|
||||
when 'nonWordCharacters'
|
||||
@nonWordCharacters = value
|
||||
|
||||
when 'backUpBeforeSaving'
|
||||
@backUpBeforeSaving = value
|
||||
|
||||
when 'scrollSensitivity'
|
||||
@scrollSensitivity = value
|
||||
|
||||
when 'encoding'
|
||||
@buffer.setEncoding(value)
|
||||
|
||||
when 'softTabs'
|
||||
if value isnt @softTabs
|
||||
@softTabs = value
|
||||
|
||||
Reference in New Issue
Block a user