Skip to content

fix(macros): stop playback on blocked vertical motions - #1

Merged
fcoury-oai merged 1 commit into
mainfrom
fix/macro-motion-boundary
Oct 28, 2026
Merged

fcoury-oai merged 1 commit into
mainfrom
fix/macro-motion-boundary

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

On the last of six TODO lines, Neovim stops the recorded macro at j. Vimlet continued to the following 0 and moved the cursor to the start of the line. The edited text matched, but the final cursor was at byte 54 instead of 58. Failing reference job

Vertical motions now return no target when they cannot leave the current line. That lets the existing macro playback logic discard the remaining keys and repetitions. A counted motion such as 9j still succeeds if it advances at least one line before reaching the boundary.

How to Test

With Neovim 0.12.1 on the path, run python3 scripts/conformance.py. All 393 cases passed locally. The original six-line fixture checks the final cursor. Two additional cases check that a blocked k stops the remaining repetitions and that a partially completed 9j runs the next macro key.

@fcoury-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T23:35:06.878118Z cb6dc28 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: cb6dc28f53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fcoury-oai
fcoury-oai merged commit d91a187 into main Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant