diff --git a/src/app/config-panel.coffee b/src/app/config-panel.coffee index 81ec3e0ed..279313ecb 100644 --- a/src/app/config-panel.coffee +++ b/src/app/config-panel.coffee @@ -41,9 +41,8 @@ class ConfigPanel extends View value ?= "" editor.setText(value.toString()) - editor.getBuffer().one 'contents-modified', => - editor.getBuffer().on 'contents-modified', => - config.set(name, @parseValue(type, editor.getText())) + editor.getBuffer().on 'contents-modified', => + config.set(name, @parseValue(type, editor.getText())) parseValue: (type, value) -> switch type