[escher/text_field] Fix std::min use

This commit is contained in:
Léa Saviot
2020-04-22 14:57:39 +02:00
committed by Émilie Feral
parent 5393ec7273
commit 0f2ac5b110
2 changed files with 3 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char
line,
UTF8Helper::GlyphOffsetAtCodePoint(text, autocompleteStart),
autocompleteStart,
minPointer(text + byteLength, autocompleteEnd) - autocompleteStart,
std::min(text + byteLength, autocompleteEnd) - autocompleteStart,
AutocompleteColor,
BackgroundColor,
nullptr,