diff --git a/src/text-editor-component.coffee b/src/text-editor-component.coffee index 385a20dbb..f4e2856b9 100644 --- a/src/text-editor-component.coffee +++ b/src/text-editor-component.coffee @@ -442,7 +442,7 @@ TextEditorComponent = React.createClass # clipboard.writeText is a sync ipc call on Linux and that # will slow down selections. ipc.send('write-text-to-selection-clipboard', selectedText) - @subscribe @props.editor.onDidChangeSelectionRange => + @subscribe @props.editor.onDidChangeSelectionRange -> clearTimeout(timeoutId) timeoutId = setTimeout(writeSelectedTextToSelectionClipboard)