diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:47:03 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:47:03 +0200 |
| commit | 768cb71841e9c2b0989d454e6d6804c0f2330eff (patch) | |
| tree | 551dc23d93a4b29e7798bdaf1c1ea56e9e1980fa /tests | |
| parent | aff351a1f12227622948bda2f2a093363e80e084 (diff) | |
Route command contexts
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua index 8eeef32..f10aa70 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -3122,6 +3122,28 @@ test("Motion execution routes every Visual kind to the Visual path", function() end end) +test("Motion execution routes non-Visual contexts to the command path", function() + local command_modes = { + "n", + "no", + "nov", + "noV", + "no" .. string.char(0x16), + "s", + "S", + string.char(0x13), + "niI", + "normal-extension", + } + for _, mode in ipairs(command_modes) do + same( + motion_executor.ExecutionPath.COMMAND, + motion_executor.execution_path(mode), + mode + ) + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then |
