From d4cd55d861e6ca0034021e8dcdab9d1e3031cd35 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 12:50:21 +0200 Subject: [PATCH] Update cursorManager.py --- src/fenrir-package/core/cursorManager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fenrir-package/core/cursorManager.py b/src/fenrir-package/core/cursorManager.py index bd829423..af28940b 100644 --- a/src/fenrir-package/core/cursorManager.py +++ b/src/fenrir-package/core/cursorManager.py @@ -16,6 +16,14 @@ class cursorManager(): def clearMarks(self): self.env['commandBuffer']['Marks']['1'] = None self.env['commandBuffer']['Marks']['2'] = None + def isMarkSet(self): + return self.env['commandBuffer']['Marks']['1'] != None + def isSingleMark(self): + return self.env['commandBuffer']['Marks']['1'] != None and \ + self.env['commandBuffer']['Marks']['2'] == None + def isMultibleMark(self): + return self.env['commandBuffer']['Marks']['1'] != None and \ + self.env['commandBuffer']['Marks']['2'] != None def setMark(self): if not self.env['commandBuffer']['Marks']['1']: self.env['commandBuffer']['Marks']['1'] = self.env['screenData']['newCursorReview'].copy()