mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
os: fix use of deprecated splitBackwards for Flatpak (#6733)
This commit is contained in:
@ -116,7 +116,7 @@ pub fn get(alloc: Allocator) !Entry {
|
||||
};
|
||||
|
||||
// Shell and home are the last two entries
|
||||
var it = std.mem.splitBackwards(u8, std.mem.trimRight(u8, output, " \r\n"), ":");
|
||||
var it = std.mem.splitBackwardsScalar(u8, std.mem.trimRight(u8, output, " \r\n"), ':');
|
||||
result.shell = it.next() orelse null;
|
||||
result.home = it.next() orelse null;
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user