mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[ion/utf8_helper] EndOfWord helper
This commit is contained in:
@@ -166,10 +166,7 @@ void PythonTextArea::ContentView::drawLine(KDContext * ctx, int line, const char
|
||||
const char * autocompleteStart = m_cursorLocation;
|
||||
assert(autocompleteStart != text);
|
||||
if (m_autocomplete && autocompleteStart > text && autocompleteStart < text + byteLength) {
|
||||
const char * autocompleteEnd = cursorLocation();
|
||||
while (*autocompleteEnd != ' ' && autocompleteEnd < text + byteLength) {
|
||||
autocompleteEnd++;
|
||||
}
|
||||
const char * autocompleteEnd = UTF8Helper::EndOfWord(autocompleteStart);
|
||||
drawStringAt(
|
||||
ctx,
|
||||
line,
|
||||
|
||||
Reference in New Issue
Block a user