Skip to content

fix: reject read offset=0 and suppress bogus note for limit=0 - #4

Merged
Ariasu123 merged 1 commit into
Ariasu123:mainfrom
Evan-bunny:Evan-bunny-patch-1
Aug 15, 2026
Merged

fix: reject read offset=0 and suppress bogus note for limit=0#4
Ariasu123 merged 1 commit into
Ariasu123:mainfrom
Evan-bunny:Evan-bunny-patch-1

Conversation

@Ariasu123

Copy link
Copy Markdown
Owner

Closes #1

Fix contributed by @Evan-bunny (originally opened as Evan-bunny#1 against the fork; re-targeted here).

  • offset=0 now returns a clear 1-indexed error instead of silently selecting the last line
  • limit=0 no longer emits a bogus [Showing lines 1-0 ...] continuation note

Regression tests will follow in a separate commit.

Co-authored-by: JTianLe <161191212+Ariasu123@users.noreply.github.com>
@Ariasu123
Ariasu123 merged commit 9e71990 into Ariasu123:main Aug 15, 2026
3 checks passed
Ariasu123 added a commit that referenced this pull request Aug 15, 2026
Covers the fixes from #4: offset=0 returns a 1-indexed error, and
limit=0 no longer produces a bogus '[Showing lines 1-0 ...]' note.
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.

read tool: offset=0 silently returns the last line mislabeled as line 0

2 participants