mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Revert changes to editor-view
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user