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()