QScintilla/QsciScintillaCompat.py

changeset 6725
cde74a0d1f23
parent 6645
ad476851d7e0
child 6734
1eaf6955acf5
--- a/QScintilla/QsciScintillaCompat.py	Sun Feb 10 17:24:10 2019 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Mon Feb 11 19:23:31 2019 +0100
@@ -1622,6 +1622,20 @@
                 return string.encode("latin-1")
     
     ###########################################################################
+    ## 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)
+    
+    ###########################################################################
     ## methods below have been added to QScintilla starting with version 2.5
     ###########################################################################
     

eric ide

mercurial