mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-17 17:29:37 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user