Fix assert caused by 38630711a0

This commit is contained in:
Campbell Barton 2021-08-25 17:18:26 +10:00
parent 820d50d3cb
commit 9df063df19
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ void BLI_str_cursor_step_utf8(const char *str,
* list of special character, ctr -> */
while ((*pos) < maxlen) {
if (BLI_str_cursor_step_next_utf8(str, maxlen, pos)) {
if (*pos == maxlen) {
break;
}
if ((jump != STRCUR_JUMP_ALL) &&
(delim_type != cursor_delim_type_utf8(str, maxlen, *pos))) {
break;