diff options
Diffstat (limited to 'src/normal.zig')
| -rw-r--r-- | src/normal.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/normal.zig b/src/normal.zig index 34f5ef58..9e47cf45 100644 --- a/src/normal.zig +++ b/src/normal.zig @@ -48,7 +48,6 @@ fn normalInput(key: Key) modal.Normal.Input { } pub fn multiOnce(p: *Pardes) bool { - if (!p.multi_on) return true; p.multi_stop = true; return p.multi_first; } @@ -527,7 +526,6 @@ pub fn replaySels(p: *Pardes, t: *Text, what: Replay) void { // each pass's result: cursor and anchor cells as distances from the // end of the surface text, plus the range's own j/k goal column var res: [Text.max_selections]struct { cur: usize, anc: usize, sticky: i32 } = undefined; - p.multi_on = true; p.multi_stop = false; var passes: usize = 0; var i: usize = n; @@ -569,8 +567,9 @@ pub fn replaySels(p: *Pardes, t: *Text, what: Replay) void { co; res[i] = .{ .cur = text.len - @min(co, text.len), .anc = text.len - @min(ao, text.len), .sticky = t.sticky_col }; } - p.multi_on = false; - p.multi_first = false; + p.multi_first = true; + p.multi_index = 0; + p.multi_count = 1; if (p.multi_stop) { p.multi_stop = false; if (owner != null) { |
