mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
hope to fix
This commit is contained in:
@@ -2406,7 +2406,7 @@ const Action = struct {
|
||||
|
||||
// If the tree has no splits (only one leaf), this action is not performable.
|
||||
// This allows the key event to pass through to the terminal.
|
||||
if (!tree.isSplit()) return false;
|
||||
if (!tree.getIsSplit()) return false;
|
||||
|
||||
return tree.resize(
|
||||
switch (value.direction) {
|
||||
@@ -2564,7 +2564,7 @@ const Action = struct {
|
||||
|
||||
// If the tree has no splits (only one leaf), this action is not performable.
|
||||
// This allows the key event to pass through to the terminal.
|
||||
if (!tree.isSplit()) return false;
|
||||
if (!tree.getIsSplit()) return false;
|
||||
|
||||
return surface.as(gtk.Widget).activateAction("split-tree.zoom", null) != 0;
|
||||
},
|
||||
|
||||
@@ -561,7 +561,7 @@ pub const SplitTree = extern struct {
|
||||
));
|
||||
}
|
||||
|
||||
fn getIsSplit(self: *Self) bool {
|
||||
pub fn getIsSplit(self: *Self) bool {
|
||||
const tree: *const Surface.Tree = self.private().tree orelse &.empty;
|
||||
if (tree.isEmpty()) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user