Another way to remove a current line from the StyledTextCtrl

Solution:

lineNum = editor.GetCurrentLine()
editor.Remove(editor.GetLineEndPosition(lineNum) - editor.GetLineLength(lineNum), editor.XYToPosition(0, lineNum+1))

Doesn’t editor.LineDelete() do that?

LineDelete(self)

    Delete the line containing the caret.
1 Like

LoL. Didn’t notice.