Fixed incorrect display of SQL calltips containing non-US-ASCII characters

There is a further problem when the calltip is displayed after clicking
one of the arrows for overloaded functions.

This was first reported in #1107 (Russian) and #1206 (Korean). The subcase
has been reported in PR #2424.

Patch reported in the QScintilla list, so there is no need to keep a new
patch. It is assumed to come in new QScintilla versions.
This commit is contained in:
mgr
2020-10-09 22:17:39 +02:00
parent a1100b4f41
commit 852faf6b38

View File

@@ -470,7 +470,10 @@ void QsciScintilla::handleCallTipClick(int dir)
if (ct_cursor > 0)
ct.prepend('\001');
SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), ct.toLatin1().data());
ScintillaBytes ct_bytes = textAsBytes(ct);
const char *cts = ScintillaBytesConstData(ct_bytes);
SendScintilla(SCI_CALLTIPSHOW, adjustedCallTipPosition(shift), cts);
}