Skip to content

Fix documentation for Loc.LessThan() and other similar functions#4058

Merged
JoeKar merged 2 commits intomicro-editor:masterfrom
bibainet:fixdoc
Mar 30, 2026
Merged

Fix documentation for Loc.LessThan() and other similar functions#4058
JoeKar merged 2 commits intomicro-editor:masterfrom
bibainet:fixdoc

Conversation

@bibainet
Copy link
Copy Markdown
Contributor

This PR includes small fixes in internal/buffer/loc.go.

  1. The documentation for Loc.LessThan() and other similar functions stated the opposite result of the comparison.
  2. Rewritten Loc.MoveLA(n): do not call util.Abs(n) in cycle, cleaner code with no additional variables.

@JoeKar JoeKar merged commit 25faa84 into micro-editor:master Mar 30, 2026
6 checks passed
@bibainet bibainet deleted the fixdoc branch March 30, 2026 20:44
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.

3 participants