mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Move the cursor on single click
This commit is contained in:
@@ -153,7 +153,8 @@ class Editor extends Model
|
||||
@delegatesMethods 'setLineHeight', 'getLineHeight', 'setDefaultCharWidth', 'setHeight',
|
||||
'getHeight', 'setWidth', 'getWidth', 'setScrollTop', 'getScrollTop', 'getScrollBottom',
|
||||
'setScrollBottom', 'setScrollLeft', 'getScrollLeft', 'getScrollHeight', 'getVisibleRowRange',
|
||||
'intersectsVisibleRowRange', 'selectionIntersectsVisibleRowRange', toProperty: 'displayBuffer'
|
||||
'intersectsVisibleRowRange', 'selectionIntersectsVisibleRowRange', 'pixelPositionForScreenPosition',
|
||||
'screenPositionForPixelPosition', toProperty: 'displayBuffer'
|
||||
|
||||
@delegatesProperties '$lineHeight', '$defaultCharWidth', '$height', '$width',
|
||||
'$scrollTop', '$scrollLeft', toProperty: 'displayBuffer'
|
||||
@@ -512,8 +513,6 @@ class Editor extends Model
|
||||
# this editor.
|
||||
shouldPromptToSave: -> @isModified() and not @buffer.hasMultipleEditors()
|
||||
|
||||
pixelPositionForScreenPosition: (screenPosition) -> @displayBuffer.pixelPositionForScreenPosition(screenPosition)
|
||||
|
||||
# Public: Convert a position in buffer-coordinates to screen-coordinates.
|
||||
#
|
||||
# The position is clipped via {::clipBufferPosition} prior to the conversion.
|
||||
|
||||
Reference in New Issue
Block a user