mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Move to first character of line that symbol is on
This commit is contained in:
@@ -98,7 +98,7 @@ describe "OutlineView", ->
|
||||
outlineView.attach()
|
||||
expect(rootView.find('.outline-view')).toExist()
|
||||
outlineView.confirmed(tags[1])
|
||||
expect(rootView.getActiveEditor().getCursorBufferPosition()).toEqual [1,0]
|
||||
expect(rootView.getActiveEditor().getCursorBufferPosition()).toEqual [1,2]
|
||||
|
||||
describe "TagGenerator", ->
|
||||
it "generates tags for all JavaScript functions", ->
|
||||
|
||||
@@ -53,6 +53,7 @@ class OutlineView extends SelectList
|
||||
editor = @rootView.getActiveEditor()
|
||||
editor.scrollToBufferPosition(position, center: true)
|
||||
editor.setCursorBufferPosition(position)
|
||||
editor.moveCursorToFirstCharacterOfLine()
|
||||
|
||||
cancelled: ->
|
||||
@miniEditor.setText('')
|
||||
|
||||
Reference in New Issue
Block a user