mirror of
https://github.com/atom/atom.git
synced 2026-01-27 07:47:58 -05:00
💄
This commit is contained in:
@@ -45,10 +45,8 @@ class TabView extends SortableList
|
||||
@find(".tab:eq(#{index})").remove()
|
||||
|
||||
containsTab: (tab) ->
|
||||
unique = true
|
||||
path = $(tab).view().buffer.file.path
|
||||
paths = $.makeArray(@find('.tab')).map (e) ->
|
||||
$(e).view().buffer.file.path
|
||||
path = $(tab).view().representedPath()
|
||||
paths = $.makeArray(@find('.tab')).map (e) -> $(e).view().representedPath()
|
||||
|
||||
return paths.some (tabpath) -> tabpath == path
|
||||
|
||||
|
||||
@@ -38,4 +38,7 @@ class Tab extends View
|
||||
fileNameText = 'untitled'
|
||||
|
||||
@fileName.text(fileNameText)
|
||||
@fileName.attr('title', @editSession.getPath())
|
||||
@fileName.attr('title', @editSession.getPath())
|
||||
|
||||
representedPath: ->
|
||||
@buffer.file.path
|
||||
Reference in New Issue
Block a user