summaryrefslogtreecommitdiff
path: root/core/normal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/normal.zig')
-rw-r--r--core/normal.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/normal.zig b/core/normal.zig
index fb392647..66df9608 100644
--- a/core/normal.zig
+++ b/core/normal.zig
@@ -1277,9 +1277,10 @@ fn executeNormalAction(p: *Pardes, t: *Text, a: modal.Normal.Action) edit.Error!
return panes.startPrompt(p, pane, &pane.body, .{ .search = config.search_marker }),
// In a file's text, n and N step its places while they answer for
// the register (Places.answersN); else helix's search of the register.
- // A kind's pane walks its `/`'s +Search (look.zig runSearch).
+ // A kind's pane walks its `/`'s +Search (look.zig runSearch): the
+ // places the rows hold, never the disk (a motion).
.search_next, .search_prev => if (t.what == .body and pane.addon != null)
- return look.lookWalk(p, if (a.role == .search_next) 1 else -1)
+ return look.lookWalk(p, if (a.role == .search_next) 1 else -1, false)
else if (t.what == .body and pane.file != null and pane.places.answersN(p, pane))
return pane.places.step(p, pane, a.role == .search_next, a.count, t.select)
else