Conversation
regression of 7162adf `:FzfLua buffers` can notice the difference
|
Ok now I know why it's written like that... |
📝 WalkthroughWalkthroughUpdated a cursor-highlight extmark fallback condition in the previewer builtin module to only create extmarks when the column value is explicitly greater than zero, preventing invalid non-positive column values from being used. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I don't know why I didn't notice this for months... |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@lua/fzf-lua/previewer/builtin.lua`:
- Line 1332: The condition "if not extmark and hls.cursor and entry.col > 0
then" can error when entry.col is nil; change it to explicitly guard entry.col
(e.g., check entry.col ~= nil and entry.col > 0, or use (entry.col or 0) > 0) so
the branch only evaluates numeric comparisons when col exists; keep references
to extmark and hls.cursor unchanged and ensure this nil-safe check covers
entries produced by the autocmd parser that may omit the col field.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 76f2b9a7-e132-4dd8-ad71-2c178a5c9868
📒 Files selected for processing (1)
lua/fzf-lua/previewer/builtin.lua
|
it's still Not sure why it did't provide |
regression of 7162adf
:FzfLua bufferscan notice the differenceSummary by CodeRabbit
Release Notes