mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Make undo grouping interval configurable
This commit is contained in:
@@ -21,7 +21,6 @@ TextEditorComponent = React.createClass
|
||||
|
||||
statics:
|
||||
performSyncUpdates: false
|
||||
groupingInterval: 500
|
||||
|
||||
visible: false
|
||||
autoHeight: false
|
||||
@@ -458,7 +457,7 @@ TextEditorComponent = React.createClass
|
||||
selectedLength = inputNode.selectionEnd - inputNode.selectionStart
|
||||
editor.selectLeft() if selectedLength is 1
|
||||
|
||||
insertedRange = editor.transact @constructor.groupingInterval, ->
|
||||
insertedRange = editor.transact atom.config.get('editor.undoGroupingInterval'), ->
|
||||
editor.insertText(event.data)
|
||||
inputNode.value = event.data if insertedRange
|
||||
|
||||
|
||||
Reference in New Issue
Block a user