From 245be9f2d21b7c3b19dda71871f5186ceb7bc86b Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 12:40:49 +0200 Subject: [PATCH] Update set_mark.py --- src/fenrir-package/commands/commands/set_mark.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/fenrir-package/commands/commands/set_mark.py b/src/fenrir-package/commands/commands/set_mark.py index 82852cad..fd25ba99 100644 --- a/src/fenrir-package/commands/commands/set_mark.py +++ b/src/fenrir-package/commands/commands/set_mark.py @@ -17,15 +17,11 @@ class command(): return 'places marks to select text to copy to the clipboard' def run(self): - if not self.env['screenData']['newCursorReview']: + if not self.env['runtime']['cursorManager'].isReviewMode(): self.env['runtime']['outputManager'].presentText('no review cursor', interrupt=True) return - if not self.env['commandBuffer']['Marks']['1']: - self.env['commandBuffer']['Marks']['1'] = self.env['screenData']['newCursorReview'].copy() - else: - self.env['commandBuffer']['Marks']['2'] = self.env['screenData']['newCursorReview'].copy() - + self.env['runtime']['cursorManager'].setMark() self.env['runtime']['outputManager'].presentText('set mark', interrupt=True) def setCallback(self, callback):