We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc45258 commit 3a5fb9dCopy full SHA for 3a5fb9d
python/console/console_sci.py
@@ -244,7 +244,7 @@ def getTextLength(self):
244
def get_end_pos(self):
245
"""Return (line, index) position of the last character"""
246
line = self.lines() - 1
247
- return (line, len(self.text(line)))
+ return line, len(self.text(line))
248
249
def is_cursor_at_end(self):
250
"""Return True if cursor is at the end of text"""
@@ -560,8 +560,9 @@ def insertFromDropPaste(self, textDP):
560
if pasteList[-1] != "":
561
line = pasteList[-1]
562
cleanLine = line.replace(">>> ", "").replace("... ", "")
563
+ curpos = self.getCursorPosition()
564
self.insert(cleanLine)
- self.move_cursor_to_end()
565
+ self.setCursorPosition(curpos[0], curpos[1] + len(cleanLine))
566
567
def insertTextFromFile(self, listOpenFile):
568
for line in listOpenFile[:-1]:
0 commit comments