build: update to zig-0.14.0-dev.3280
This commit is contained in:
parent
9b197e7209
commit
a0514a6f7e
5 changed files with 17 additions and 15 deletions
|
@ -1 +1 @@
|
||||||
0.14.0-dev.3091+42e48b83b
|
0.14.0-dev.3280+bbd13ab96
|
||||||
|
|
|
@ -123,12 +123,12 @@ const Process = struct {
|
||||||
|
|
||||||
if (isdupe(self.backwards.getLastOrNull(), entry)) {
|
if (isdupe(self.backwards.getLastOrNull(), entry)) {
|
||||||
if (self.current) |current| self.forwards.append(current) catch {};
|
if (self.current) |current| self.forwards.append(current) catch {};
|
||||||
const top = self.backwards.pop();
|
if (self.backwards.pop()) |top|
|
||||||
self.allocator.free(top.file_path);
|
self.allocator.free(top.file_path);
|
||||||
tp.trace(tp.channel.all, tp.message.fmt(.{ "location", "back", entry.file_path, entry.cursor.row, entry.cursor.col, self.backwards.items.len, self.forwards.items.len }));
|
tp.trace(tp.channel.all, tp.message.fmt(.{ "location", "back", entry.file_path, entry.cursor.row, entry.cursor.col, self.backwards.items.len, self.forwards.items.len }));
|
||||||
} else if (isdupe(self.forwards.getLastOrNull(), entry)) {
|
} else if (isdupe(self.forwards.getLastOrNull(), entry)) {
|
||||||
if (self.current) |current| self.backwards.append(current) catch {};
|
if (self.current) |current| self.backwards.append(current) catch {};
|
||||||
const top = self.forwards.pop();
|
if (self.forwards.pop()) |top|
|
||||||
self.allocator.free(top.file_path);
|
self.allocator.free(top.file_path);
|
||||||
tp.trace(tp.channel.all, tp.message.fmt(.{ "location", "forward", entry.file_path, entry.cursor.row, entry.cursor.col, self.backwards.items.len, self.forwards.items.len }));
|
tp.trace(tp.channel.all, tp.message.fmt(.{ "location", "forward", entry.file_path, entry.cursor.row, entry.cursor.col, self.backwards.items.len, self.forwards.items.len }));
|
||||||
} else if (self.current) |current| {
|
} else if (self.current) |current| {
|
||||||
|
|
|
@ -913,10 +913,11 @@ const FilteredWalker = struct {
|
||||||
var containing = top;
|
var containing = top;
|
||||||
var dirname_len = top.dirname_len;
|
var dirname_len = top.dirname_len;
|
||||||
if (top.iter.next() catch {
|
if (top.iter.next() catch {
|
||||||
var item = self.stack.pop();
|
var item_ = self.stack.pop();
|
||||||
|
if (item_) |*item|
|
||||||
if (self.stack.items.len != 0) {
|
if (self.stack.items.len != 0) {
|
||||||
item.iter.dir.close();
|
item.iter.dir.close();
|
||||||
}
|
};
|
||||||
continue;
|
continue;
|
||||||
}) |base| {
|
}) |base| {
|
||||||
self.name_buffer.shrinkRetainingCapacity(dirname_len);
|
self.name_buffer.shrinkRetainingCapacity(dirname_len);
|
||||||
|
@ -947,10 +948,11 @@ const FilteredWalker = struct {
|
||||||
else => continue,
|
else => continue,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var item = self.stack.pop();
|
var item_ = self.stack.pop();
|
||||||
|
if (item_) |*item|
|
||||||
if (self.stack.items.len != 0) {
|
if (self.stack.items.len != 0) {
|
||||||
item.iter.dir.close();
|
item.iter.dir.close();
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -104,7 +104,7 @@ pub fn remove_all(self: *Self) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn pop(self: *Self) ?Widget {
|
pub fn pop(self: *Self) ?Widget {
|
||||||
return if (self.widgets.popOrNull()) |ws| ws.widget else null;
|
return if (self.widgets.pop()) |ws| ws.widget else null;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn empty(self: *const Self) bool {
|
pub fn empty(self: *const Self) bool {
|
||||||
|
|
|
@ -629,7 +629,7 @@ pub const Editor = struct {
|
||||||
|
|
||||||
pub fn pop_cursor(self: *Self, _: Context) Result {
|
pub fn pop_cursor(self: *Self, _: Context) Result {
|
||||||
if (self.cursels.items.len > 1) {
|
if (self.cursels.items.len > 1) {
|
||||||
const cursel = self.cursels.popOrNull() orelse return orelse return;
|
const cursel = self.cursels.pop() orelse return orelse return;
|
||||||
if (cursel.selection) |sel| if (self.find_selection_match(sel)) |match| {
|
if (cursel.selection) |sel| if (self.find_selection_match(sel)) |match| {
|
||||||
match.has_selection = false;
|
match.has_selection = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue