~jamii/focus

5fd5f2258904a83737275e4b3b78d80187f9efef — Jamie Brandon 7 months ago 1184f24 large-files
In addNextMatch, copy selection direction of main_cursor
1 files changed, 2 insertions(+), 0 deletions(-)

M lib/focus/editor.zig
M lib/focus/editor.zig => lib/focus/editor.zig +2 -0
@@ 851,6 851,8 @@ pub const Editor = struct {
                .head = .{ .pos = pos + selection.len, .col = 0 },
                .tail = .{ .pos = pos, .col = 0 },
            };
            if (main_cursor.head.pos < main_cursor.tail.pos)
                std.mem.swap(Point, &cursor.head, &cursor.tail);
            self.updateCol(&cursor.head);
            self.updateCol(&cursor.tail);
            self.cursors.append(cursor) catch oom();