mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't respond to observe events when the editor value doesn't change
This commit is contained in:
committed by
Corey Johnson & Kevin Sawicki
parent
9f85ba4f7d
commit
f06c9a5bc8
@@ -37,6 +37,8 @@ class ConfigPanel extends View
|
||||
type = editor.attr('type')
|
||||
|
||||
@observeConfig name, (value) ->
|
||||
return if value?.toString() == editor.getText()
|
||||
value ?= ""
|
||||
editor.setText(value.toString())
|
||||
|
||||
editor.getBuffer().on 'contents-modified', ->
|
||||
|
||||
Reference in New Issue
Block a user