fix(Buffer): get_range should only use direction normalized selections
This commit is contained in:
parent
2faa5c6b9b
commit
b4c7094205
1 changed files with 2 additions and 2 deletions
|
@ -577,9 +577,9 @@ const Node = union(enum) {
|
|||
|
||||
var ctx: Ctx = .{ .sel = sel, .out = copy_buf };
|
||||
ctx.sel.normalize();
|
||||
if (sel.begin.eql(sel.end))
|
||||
if (ctx.sel.begin.eql(ctx.sel.end))
|
||||
return error.Stop;
|
||||
self.walk_egc_forward(sel.begin.row, Ctx.walker, &ctx, plane_) catch |e| return switch (e) {
|
||||
self.walk_egc_forward(ctx.sel.begin.row, Ctx.walker, &ctx, plane_) catch |e| return switch (e) {
|
||||
error.NoSpaceLeft => error.NoSpaceLeft,
|
||||
else => error.Stop,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue