QScintilla/QsciScintillaCompat.py

branch
5_3_x
changeset 2651
93439c60fe45
parent 2631
06f866e83d3a
child 2652
894f162dd635
--- a/QScintilla/QsciScintillaCompat.py	Mon May 06 19:58:43 2013 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Wed May 08 18:34:20 2013 +0200
@@ -471,6 +471,10 @@
         """
         self.SendScintilla(QsciScintilla.SCI_LINEENDEXTEND)
     
+        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