~jamii/focus

f64fe6ee2276373b45f54d77073a3ba8792eb192 — Jamie Brandon 1 year, 7 days ago f48a973
Nit
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/focus/editor.zig
M lib/focus/editor.zig => lib/focus/editor.zig +2 -2
@@ 709,8 709,8 @@ pub const Editor = struct {
        self.line_wrapped_buffer.update();
        for (self.cursors.items) |*cursor| {
            for (&[2]*Point{ &cursor.head, &cursor.tail }) |point| {
                if (point.pos >= start and point.pos <= end) point.pos = start;
                if (point.pos > end) point.pos -= (end - start);
                if (point.pos >= start and point.pos < end) point.pos = start;
                if (point.pos >= end) point.pos -= (end - start);
                self.updateCol(point);
            }
        }