--- a/QScintilla/QsciScintillaCompat.py Wed May 08 18:34:20 2013 +0200 +++ b/QScintilla/QsciScintillaCompat.py Wed May 08 18:42:59 2013 +0200 @@ -471,10 +471,17 @@ """ self.SendScintilla(QsciScintilla.SCI_LINEENDEXTEND) + def selectionIsRectangle(self): + """ + Public method to check, if the current selection is rectangular. + + @return flag indicating a rectangular selection. + """ startLine, startIndex, endLine, endIndex = self.getSelection() return startLine != -1 and \ startLine != endLine and \ self.SendScintilla(QsciScintilla.SCI_SELECTIONISRECTANGLE) + def getLineSeparator(self): """ Public method to get the line separator for the current eol mode.