mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Use unique text editor title in window and tab titles
This commit is contained in:
@@ -155,7 +155,7 @@ class Workspace extends Model
|
||||
projectPaths = @project.getPaths() ? []
|
||||
if item = @getActivePaneItem()
|
||||
itemPath = item.getPath?()
|
||||
itemTitle = item.getTitle?()
|
||||
itemTitle = item.getLongTitle?() ? item.getTitle?()
|
||||
projectPath = _.find projectPaths, (projectPath) ->
|
||||
itemPath is projectPath or itemPath?.startsWith(projectPath + path.sep)
|
||||
itemTitle ?= "untitled"
|
||||
|
||||
Reference in New Issue
Block a user