diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-07-18 10:42:23 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-07-18 11:42:44 -0700 |
| commit | 7c9e913ca9f7770154add8ed4d53e91504bb904d (patch) | |
| tree | ebcf1378173009b53ce1091f948c36e3b37fffed /src/Surface.zig | |
| parent | 9f2ff0cb9c38693ffa37350f58db6045c4be0d9a (diff) | |
apprt/gtk-ng: hook up surface initialization
Diffstat (limited to 'src/Surface.zig')
| -rw-r--r-- | src/Surface.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Surface.zig b/src/Surface.zig index b12750545..a9a7e239f 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1738,7 +1738,10 @@ pub fn selectionInfo(self: *const Surface) ?apprt.Selection { /// Returns the pwd of the terminal, if any. This is always copied because /// the pwd can change at any point from termio. If we are calling from the IO /// thread you should just check the terminal directly. -pub fn pwd(self: *const Surface, alloc: Allocator) !?[]const u8 { +pub fn pwd( + self: *const Surface, + alloc: Allocator, +) Allocator.Error!?[]const u8 { self.renderer_state.mutex.lock(); defer self.renderer_state.mutex.unlock(); const terminal_pwd = self.io.terminal.getPwd() orelse return null; |
