Skip to content

Conversation

@mandaiy
Copy link
Owner

@mandaiy mandaiy commented Dec 28, 2025

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull 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".

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".

Comment on lines +10 to +13
for l = cur, 1, -1 do
local line = vim.fn.getline(l)
if line:match("^%s*# %%%%") and l ~= cur then
start = l + 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat current cell marker as a boundary

When the cursor is on a # %% marker line, the l ~= cur guard prevents the current marker from being recognized as the start of the cell. In that situation, start is taken from the previous marker and finish from the next marker, so the range includes the marker line and can send the previous cell instead of the intended cell below the marker. This only happens when the user triggers the mapping while their cursor is on the marker line, but it will send the wrong cell contents in that common workflow.

Useful? React with 👍 / 👎.

@mandaiy mandaiy merged commit d936f41 into main Dec 28, 2025
1 check passed
@mandaiy mandaiy deleted the nvim/vim-slime branch December 28, 2025 13:32
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.

2 participants