mirror of
https://github.com/atom/atom.git
synced 2026-02-11 23:25:03 -05:00
Merge master
This commit is contained in:
@@ -177,6 +177,7 @@ class Editor extends View
|
||||
'editor:toggle-indent-guide': => config.set('editor.showIndentGuide', !config.get('editor.showIndentGuide'))
|
||||
'editor:save-debug-snapshot': @saveDebugSnapshot
|
||||
'editor:toggle-line-numbers': => config.set('editor.showLineNumbers', !config.get('editor.showLineNumbers'))
|
||||
'editor:scroll-to-cursor': @scrollToCursorPosition
|
||||
|
||||
documentation = {}
|
||||
for name, method of editorBindings
|
||||
@@ -768,6 +769,9 @@ class Editor extends View
|
||||
scrollToBottom: ->
|
||||
@scrollBottom(@screenLineCount() * @lineHeight)
|
||||
|
||||
scrollToCursorPosition: ->
|
||||
@scrollToBufferPosition(@getCursorBufferPosition(), center: true)
|
||||
|
||||
# Public: Scrolls the editor to the given buffer position.
|
||||
#
|
||||
# bufferPosition - An object that represents a buffer position. It can be either
|
||||
|
||||
Reference in New Issue
Block a user