@@ -209,11 +209,15 @@ func (m *messageCmp) renderUserMessage() string {
209209 for _, attachment := range m.message.BinaryContent() {
210210 file := filepath.Base(attachment.Path)
211211 var filename string
212− if len(file) > 10 {
213− filename = fmt.Sprintf(" %s %s... ", styles.DocumentIcon, file[0:7])
212+ runes := []rune(file)
213+
214+ const truncatePathAt = 7
215+ if len(runes) > truncatePathAt {
216+ filename = fmt.Sprintf(" %s %s... ", styles.DocumentIcon, string(runes[0:truncatePathAt]))
214217 } else {
215218 filename = fmt.Sprintf(" %s %s ", styles.DocumentIcon, file)
216219 }
220+
217221 attachments = append(attachments, attachmentStyles.Render(filename))
218222 }
219223