Project
vgrep
Description
In search_tui.rs line 244-245, the line numbers are displayed as r.start_line + 1 and r.end_line + 1. If start_line or end_line are already 1-indexed (depending on database storage), this would show incorrect line numbers.
Error Message
Debug Logs
System Information
OS: Any
Rust Version: 1.75+
Screenshots
No response
Steps to Reproduce
- Index a file with known content
- Search and note the line numbers displayed in TUI
- Compare with actual file line numbers
Expected Behavior
Line numbers should match the actual file lines
Actual Behavior
Line numbers may be off by one if the database already stores 1-indexed values
Additional Context
No response
Project
vgrep
Description
In
search_tui.rsline 244-245, the line numbers are displayed asr.start_line + 1andr.end_line + 1. Ifstart_lineorend_lineare already 1-indexed (depending on database storage), this would show incorrect line numbers.Error Message
Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
Expected Behavior
Line numbers should match the actual file lines
Actual Behavior
Line numbers may be off by one if the database already stores 1-indexed values
Additional Context
No response