Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix completely broken __fish_describe_command integration
Command completion descriptions were not being generated from `apropos`. Well, they were being generated but that was not being correctly used by fish core. Not sure when this was broken, but there's a possibility it was during the rust port. In addition to simply not working, it seems the old code tried to avoid allocations but String::split_at_mut() allocates a new string (since one allocation from the global allocator can't be split into two allocations to be freed separately). Use `String::as_mut_utfstr()` before splitting the &wstr instead of splitting the &str to actually do this alloc-free.
- Loading branch information