QScintilla/QsciScintillaCompat.py

branch
5_3_x
changeset 2652
894f162dd635
parent 2651
93439c60fe45
child 3163
9f50365a0870
--- 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.

eric ide

mercurial