mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Fix some dumb clipply
This commit is contained in:
@@ -320,7 +320,7 @@ fn serialize_with_vars(vars: &VarTable) -> Vec<u8> {
|
||||
// Preserve legacy behavior by sorting the values first
|
||||
let mut cloned: Vec<(&wstr, &EnvVar)> =
|
||||
vars.iter().map(|(key, var)| (key.as_ref(), var)).collect();
|
||||
cloned.sort_by(|(lkey, _), (rkey, _)| lkey.cmp(rkey));
|
||||
cloned.sort_by_key(|(key, _)| *key);
|
||||
|
||||
for (key, var) in cloned {
|
||||
// Append the entry. Note that append_file_entry may fail, but that only affects one
|
||||
|
||||
Reference in New Issue
Block a user