Revert changes to editor-view

This commit is contained in:
Nathan Sobo
2014-04-02 17:03:18 -06:00
parent 5a8ca1ae66
commit 2f42f23ec6

View File

@@ -4,7 +4,6 @@ GutterView = require './gutter-view'
Editor = require './editor'
CursorView = require './cursor-view'
SelectionView = require './selection-view'
fs = require 'fs-plus'
_ = require 'underscore-plus'
TextBuffer = require 'text-buffer'
@@ -123,9 +122,6 @@ class EditorView extends View
@setPlaceholderText(placeholderText) if placeholderText
@contentsComponent = new EditorContentsComponent({editor})
@renderedLines.replaceWith(@contentsComponent.element)
if editor?
@edit(editor)
else if @mini
@@ -335,7 +331,8 @@ class EditorView extends View
# Checkout the HEAD revision of this editor's file.
checkoutHead: ->
@editor.checkoutHead()
if path = @editor.getPath()
atom.project.getRepo()?.checkoutHead(path)
configure: ->
@subscribe atom.config.observe 'editor.showLineNumbers', (showLineNumbers) => @gutter.setShowLineNumbers(showLineNumbers)
@@ -973,8 +970,6 @@ class EditorView extends View
@redrawOnReattach = true
return
return
scrollViewWidth = @scrollView.width()
@updateRenderedLines(scrollViewWidth)
@updatePlaceholderText()
@@ -1472,7 +1467,6 @@ class EditorView extends View
# Copies the current file path to the native clipboard.
copyPathToClipboard: ->
@editor.copyPathToClipboard()
path = @editor.getPath()
atom.clipboard.write(path) if path?