--- a/eric7/QScintilla/Editor.py Tue Aug 17 12:32:21 2021 +0200 +++ b/eric7/QScintilla/Editor.py Thu Aug 19 13:27:08 2021 +0200 @@ -8866,7 +8866,7 @@ @type int """ if self.__mouseHoverHelp is not None and pos >= 0: - line, index = self.lineIndexFromPosition(x) + line, index = self.lineIndexFromPosition(pos) if index > 0: self.__mouseHoverHelp(self, line, index) else: @@ -8911,13 +8911,13 @@ @param line line of mouse cursor position @type int @param index column of mouse cursor position - @type TYPE + @type int @param data information text to be shown @type str """ if data: pos = self.positionFromLineIndex(line, index) self.SendScintilla(QsciScintilla.SCI_CALLTIPSHOW, - pos, data) + pos, self._encodeString(data)) else: self.__cancelMouseHoverHelp()