gagalago/latexila — comment on commit dbea4d47bc9149ee8f721ac6d733da2f92c3720c
File: src/completion.vala line 870
By swilmet:

To be more UTF-8 friendly, it's better to use Utils.string_get_prev_char().