Update cursor_position.py

This commit is contained in:
chrys87 2016-09-23 12:53:42 +02:00 committed by GitHub
parent 0bb8c7a619
commit fa0da3317d

View File

@ -18,10 +18,7 @@ class command():
def run(self):
# Prefer review cursor over text cursor
if self.env['screenData']['newCursorReview']:
cursorPos = self.env['screenData']['newCursorReview'].copy()
else:
cursorPos = self.env['screenData']['newCursor'].copy()
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
self.env['runtime']['outputManager'].presentText("line "+ str(cursorPos['y']+1) + " column "+ str(cursorPos['x']+1), interrupt=True)