Simplify Editor spec's mouse event integration specs

Test handling of non-corresponding buffer & screen positions in spec on setCursorScreenPosition in edit-session-spec instead of in editor-spec
This commit is contained in:
Nathan Sobo
2012-06-12 14:44:45 -06:00
parent 87bc5ad02a
commit b895122c24
4 changed files with 64 additions and 102 deletions

View File

@@ -73,6 +73,7 @@ class EditSession
setScrollLeft: (@scrollLeft) ->
getScrollLeft: -> @scrollLeft
setSoftWrapColumn: (softWrapColumn) -> @renderer.setSoftWrapColumn(softWrapColumn)
setAutoIndent: (@autoIndent) ->
setSoftTabs: (@softTabs) ->

View File

@@ -587,7 +587,7 @@ class Editor extends View
setSoftWrapColumn: (softWrapColumn) ->
softWrapColumn ?= @calcSoftWrapColumn()
@renderer.setSoftWrapColumn(softWrapColumn) if softWrapColumn
@activeEditSession.setSoftWrapColumn(softWrapColumn) if softWrapColumn
createFold: (startRow, endRow) ->
@renderer.createFold(startRow, endRow)