QScintilla/QsciScintillaCompat.py

changeset 6734
1eaf6955acf5
parent 6725
cde74a0d1f23
child 6841
43af1e698c9d
--- a/QScintilla/QsciScintillaCompat.py	Wed Feb 13 18:48:21 2019 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Wed Feb 13 18:51:15 2019 +0100
@@ -1625,15 +1625,16 @@
     ## methods to implement workarounds for broken things
     ###########################################################################
     
-    def insert(self, txt):
-        """
-        Public method to insert text at the cursor position.
-        
-        @param txt text to be inserted
-        @type str
-        """
-        line, col = self.getCursorPosition()
-        self.insertAt(txt, line, col)
+    if QSCINTILLA_VERSION() == 0x020B00:
+        def insert(self, txt):
+            """
+            Public method to insert text at the cursor position.
+            
+            @param txt text to be inserted
+            @type str
+            """
+            line, col = self.getCursorPosition()
+            self.insertAt(txt, line, col)
     
     ###########################################################################
     ## methods below have been added to QScintilla starting with version 2.5

eric ide

mercurial