From 86b4512fafbfde8975629945839ed8adbe44cd78 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 20 Sep 2016 16:18:23 +0200 Subject: [PATCH] Update copy_marked_to_clipboard.py --- .../commands/commands/copy_marked_to_clipboard.py | 7 ++----- 1 file changed, 2 insertions(+), 5 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 96d18cc6..49efb7c3 100644 --- a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py @@ -25,10 +25,8 @@ class command(): # use the last first and the last setted mark as range startMark = environment['commandBuffer']['Marks']['1'].copy() - if environment['commandBuffer']['Marks']['3'] != None: - endMark = environment['commandBuffer']['Marks']['3'].copy() - else: - endMark = environment['commandBuffer']['Marks']['2'].copy() + endMark = environment['commandBuffer']['Marks']['2'].copy() + marked = mark_utils.getTextBetweenMarks(startMark, endMark, environment['screenData']['newContentText']) environment['commandBuffer']['clipboard'] = [marked] + environment['commandBuffer']['clipboard'][:environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'general', 'numberOfClipboards') -1] @@ -36,7 +34,6 @@ class command(): # reset marks environment['commandBuffer']['Marks']['1'] = None environment['commandBuffer']['Marks']['2'] = None - environment['commandBuffer']['Marks']['3'] = None if marked.strip(" \t\n") == '': environment['runtime']['outputManager'].presentText(environment, "blank", soundIcon='EmptyLine', interrupt=True)