From 370ce2fe0b723d1179d968a704da3c17932c053a Mon Sep 17 00:00:00 2001 From: chrys87 Date: Thu, 25 Aug 2016 10:43:35 +0200 Subject: [PATCH] Update copy_marked_to_clipboard.py --- .../commands/commands/copy_marked_to_clipboard.py | 9 ++++----- 1 file changed, 4 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 984f6eb1..bc90773f 100644 --- a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py @@ -1,13 +1,11 @@ #!/bin/python -try: - from utils import mark_utils -except Exception as e: - print(e) + +from utils import mark_utils + class command(): def __init__(self): pass def run(self, environment): - if (environment['commandBuffer']['Marks']['1'] == None) or \ (environment['commandBuffer']['Marks']['2'] == None): environment['runtime']['outputManager'].presentText(environment, "two marks needed", interrupt=True) @@ -23,6 +21,7 @@ class command(): environment['commandBuffer']['clipboard'] = [marked] + environment['commandBuffer']['clipboard'][:environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'general', 'numberOfClipboards') -1] environment['commandBuffer']['currClipboard'] = 0 + # reset marks environment['commandBuffer']['Marks']['1'] = None environment['commandBuffer']['Marks']['2'] = None environment['commandBuffer']['Marks']['3'] = None