forked from kent/consciousness
&str[..n] panics when n falls inside a multi-byte UTF-8 sequence. This crashed the daemon when processing IRC messages containing Hebrew/Yiddish characters (ehashman's messages hit byte 79-81). Replace all byte-index truncation with chars().take(n).collect() in tmux send_prompt preview, notification logging, and git context truncation. Co-Authored-By: ProofOfConcept <poc@bcachefs.org> |
||
|---|---|---|
| .. | ||
| modules | ||
| config.rs | ||
| context.rs | ||
| idle.rs | ||
| main.rs | ||
| notify.rs | ||
| rpc.rs | ||
| tmux.rs | ||