mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
💄
This commit is contained in:
@@ -440,12 +440,10 @@ TextEditorComponent = React.createClass
|
||||
return unless which is 2
|
||||
|
||||
if selection = clipboard.readText('selection')
|
||||
{editor} = @props
|
||||
editor.insertText(selection)
|
||||
@props.editor.insertText(selection)
|
||||
|
||||
@subscribe @props.editor.onDidChangeSelectionRange =>
|
||||
{editor} = @props
|
||||
if selectedText = editor.getSelectedText()
|
||||
if selectedText = @props.editor.getSelectedText()
|
||||
clipboard.writeText(selectedText, 'selection')
|
||||
|
||||
observeConfig: ->
|
||||
|
||||
Reference in New Issue
Block a user