rjkroege / edwood

Go version of Plan9 Acme Editor
Other
387 stars 34 forks source link

Add buffer.ByteTuple #446

Closed rjkroege closed 2 years ago

rjkroege commented 2 years ago

Add a new function buffer.ByteTuple that does the dual of buffer.RuneTuple: given an offset in bytes into the buffers, returns a fully-populated OffsetTuple instance with both byte and rune offsets.

codecov[bot] commented 2 years ago

Codecov Report

Merging #446 (b9ac733) into master (c6b472e) will increase coverage by 0.08%. The diff coverage is 92.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #446      +/-   ##
==========================================
+ Coverage   57.19%   57.28%   +0.08%     
==========================================
  Files          54       54              
  Lines       10669    10696      +27     
==========================================
+ Hits         6102     6127      +25     
- Misses       4137     4138       +1     
- Partials      430      431       +1     
Impacted Files Coverage Δ
file/buffer.go 88.91% <92.59%> (+0.25%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c6b472e...b9ac733. Read the comment docs.