From f384752a5da2fdb304c19933d1ed6a5b11ce9f31 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 28 Sep 2016 22:06:10 +0200 Subject: [PATCH] fix clipboard --- .../commands/commands/copy_marked_to_clipboard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py index a798fe8f..edafe95c 100644 --- a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py @@ -22,14 +22,13 @@ class command(): self.env['commandBuffer']['Marks']['2']): self.env['runtime']['outputManager'].presentText("two marks needed", interrupt=True) return - # use the last first and the last setted mark as range startMark = self.env['commandBuffer']['Marks']['1'].copy() endMark = self.env['commandBuffer']['Marks']['2'].copy() marked = mark_utils.getTextBetweenMarks(startMark, endMark, self.env['screenData']['newContentText']) - self.env['commandBuffer']['clipboard'] = [marked] + self.env['commandBuffer']['clipboard'][:self.env['runtime']['settingsManager'].getSettingAsFloat('general', 'numberOfClipboards') -1] + self.env['commandBuffer']['clipboard'] = [marked] + self.env['commandBuffer']['clipboard'][:self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards') -1] self.env['commandBuffer']['currClipboard'] = 0 # reset marks self.env['commandBuffer']['Marks']['1'] = None