Do not show fonticon autocorrect window when fonticon name does not start with alphabetic characters

This commit is contained in:
Jan 2021-09-08 18:34:04 +02:00
parent 5b93848ace
commit cfefd7d220

View File

@ -229,7 +229,7 @@ namespace Components
}
}
if(fontIconStart < 0 || fontIconStart == edit->cursor)
if(fontIconStart < 0 || fontIconStart == edit->cursor || !isalpha(static_cast<unsigned char>(edit->buffer[fontIconStart])))
{
context.autocompleteActive = false;
context.lastHash = 0;