Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Don't try to copy items by serializing and deserializing them #522

Merged
merged 1 commit into from Sep 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/tab-bar-view.coffee
Expand Up @@ -196,12 +196,9 @@ class TabBarView

splitTab: (fn) ->
if item = @rightClickedTab?.item
if copiedItem = @copyItem(item)
if copiedItem = item.copy?()
@pane[fn](items: [copiedItem])

copyItem: (item) ->
item.copy?() ? atom.deserializers.deserialize(item.serialize())

closeOtherTabs: (active) ->
tabs = @getTabs()
active ?= @rightClickedTab
Expand Down