handle no copy paste support (e.g. ssh remote use)
@@ -592,6 +592,7 @@ class BackingTextBuffer(Mutator):
self.clipList.append(text)
if self.selectionMode == app.selectable.kSelectionLine:
text = text + ('',)
+ if clipboard.copy:
clipboard.copy("\n".join(text))
def editCut(self):
@@ -599,7 +600,7 @@ class BackingTextBuffer(Mutator):
self.performDelete()
def editPaste(self):
- osClip = clipboard.paste()
+ osClip = clipboard.paste and clipboard.paste()
if len(self.clipList or osClip):
if self.selectionMode != app.selectable.kSelectionNone:
self.performDelete()
