window: Fix the last (??) display bug caused by misinterpretation of Pango's indexing