feat: allow moving tabs to empty splits
This commit is contained in:
parent
2d2d8a915b
commit
cc2aabf7dd
2 changed files with 26 additions and 18 deletions
|
|
@ -1792,7 +1792,7 @@ fn remove_view(self: *Self, view: usize) void {
|
|||
const buffers = self.buffer_manager.list_unordered(self.allocator) catch @panic("OOM remove_view");
|
||||
defer self.allocator.free(buffers);
|
||||
for (buffers) |buffer| if (buffer.get_last_view()) |buffer_view|
|
||||
if (buffer_view >= view)
|
||||
if (buffer_view > view)
|
||||
buffer.set_last_view(buffer_view - 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue