Update set_mark.py

This commit is contained in:
chrys87 2016-09-23 12:40:49 +02:00 committed by GitHub
parent 247e5445bd
commit 245be9f2d2

View File

@ -17,15 +17,11 @@ class command():
return 'places marks to select text to copy to the clipboard' return 'places marks to select text to copy to the clipboard'
def run(self): 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) self.env['runtime']['outputManager'].presentText('no review cursor', interrupt=True)
return return
if not self.env['commandBuffer']['Marks']['1']: self.env['runtime']['cursorManager'].setMark()
self.env['commandBuffer']['Marks']['1'] = self.env['screenData']['newCursorReview'].copy()
else:
self.env['commandBuffer']['Marks']['2'] = self.env['screenData']['newCursorReview'].copy()
self.env['runtime']['outputManager'].presentText('set mark', interrupt=True) self.env['runtime']['outputManager'].presentText('set mark', interrupt=True)
def setCallback(self, callback): def setCallback(self, callback):