Update set_clipboard_mark.py
This commit is contained in:
parent
ea94dc2f09
commit
8d4c5718b8
@ -6,11 +6,15 @@ class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def run(self, environment):
|
||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||
return environment
|
||||
environment['commandBuffer']['currClipboard'] = 0
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['commandBuffer']['clipboard'][environment['commandBuffer']['currClipboard']], interrupt=True)
|
||||
if environment['screenData']['newCursorReview'] == None:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True)
|
||||
|
||||
if environment['commandBuffer']['clipboardMark']['1'] == None:
|
||||
environment['commandBuffer']['clipboardMark']['1'] = environment['screenData']['newCursorReview']
|
||||
else:
|
||||
environment['commandBuffer']['clipboardMark']['2'] = environment['screenData']['newCursorReview']
|
||||
|
||||
environment['runtime']['outputManager'].presentText(environment, 'set mark', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user