From b06543725a84ac5ce8cc48810b526c00032247cf Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 05:57:17 -0300 Subject: normal: a normal-mode action splits into the text's roles and the core's (docs/next-editor.md, R2, third slice): textAction takes `e: Editor` and does the 58 roles of the text alone (motions, selections, edits, undo, registers, Esc's and `*`'s own part), textRole says which those are, and executeNormalAction keeps the 34 that reach past the text (views, builtins, prompts, LSP, the look ring, jump labels, macros), handing the rest over; replaySels, handleNormal, searchStep and searchSelection take the context, keys.zig hands `p.editor()`; nothing a key does changes; core-test 810 of 949, shell-test 989 of 992, hxdiff 658 / parity 738 / hxgolf 124 with 0 mismatches, replicas pass --- src/keys.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keys.zig') diff --git a/src/keys.zig b/src/keys.zig index 03a3b307..0277128b 100644 --- a/src/keys.zig +++ b/src/keys.zig @@ -442,7 +442,7 @@ pub fn handleKey(p: *Pardes, key: Key) void { }; const was = t.mode; switch (t.mode) { - .normal => normal.handleNormal(p, t, key), + .normal => normal.handleNormal(p.editor(), t, key), .insert => if (hit(key, config.escape) and !t.reg_wait) edit.exitInsert(p.editor(), t) else -- cgit v1.3