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,13 +123,13 @@ const Process = struct {
|
|||
|
||||
if (isdupe(self.backwards.getLastOrNull(), entry)) {
|
||||
if (self.current) |current| self.forwards.append(current) catch {};
|
||||
const top = self.backwards.pop();
|
||||
self.allocator.free(top.file_path);
|
||||
if (self.backwards.pop()) |top|
|
||||
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 }));
|
||||
} else if (isdupe(self.forwards.getLastOrNull(), entry)) {
|
||||
if (self.current) |current| self.backwards.append(current) catch {};
|
||||
const top = self.forwards.pop();
|
||||
self.allocator.free(top.file_path);
|
||||
if (self.forwards.pop()) |top|
|
||||
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 }));
|
||||
} else if (self.current) |current| {
|
||||
try self.backwards.append(current);
|
||||
|
|
|
@ -913,10 +913,11 @@ const FilteredWalker = struct {
|
|||
var containing = top;
|
||||
var dirname_len = top.dirname_len;
|
||||
if (top.iter.next() catch {
|
||||
var item = self.stack.pop();
|
||||
if (self.stack.items.len != 0) {
|
||||
item.iter.dir.close();
|
||||
}
|
||||
var item_ = self.stack.pop();
|
||||
if (item_) |*item|
|
||||
if (self.stack.items.len != 0) {
|
||||
item.iter.dir.close();
|
||||
};
|
||||
continue;
|
||||
}) |base| {
|
||||
self.name_buffer.shrinkRetainingCapacity(dirname_len);
|
||||
|
@ -947,10 +948,11 @@ const FilteredWalker = struct {
|
|||
else => continue,
|
||||
}
|
||||
} else {
|
||||
var item = self.stack.pop();
|
||||
if (self.stack.items.len != 0) {
|
||||
item.iter.dir.close();
|
||||
}
|
||||
var item_ = self.stack.pop();
|
||||
if (item_) |*item|
|
||||
if (self.stack.items.len != 0) {
|
||||
item.iter.dir.close();
|
||||
};
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
@ -104,7 +104,7 @@ pub fn remove_all(self: *Self) void {
|
|||
}
|
||||
|
||||
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 {
|
||||
|
|
|
@ -629,7 +629,7 @@ pub const Editor = struct {
|
|||
|
||||
pub fn pop_cursor(self: *Self, _: Context) Result {
|
||||
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| {
|
||||
match.has_selection = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue