rjkroege / edwood

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

Add buffer.End() #444

Closed rjkroege closed 2 years ago

rjkroege commented 2 years ago

Cache both the number of runes and number of bytes in a file.Buffer for efficiently obtaining an OffsetTuple for the end of the Buffer.

codecov[bot] commented 2 years ago

Codecov Report

Merging #444 (db6ee6c) into master (68ee4b5) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #444   +/-   ##
=======================================
  Coverage   57.18%   57.19%           
=======================================
  Files          54       54           
  Lines       10667    10669    +2     
=======================================
+ Hits         6100     6102    +2     
  Misses       4137     4137           
  Partials      430      430           
Impacted Files Coverage Δ
text.go 48.74% <ø> (ø)
wind.go 75.16% <ø> (ø)
file/buffer.go 88.66% <100.00%> (-0.06%) :arrow_down:
file/offset_tuple.go 82.14% <100.00%> (+2.97%) :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 68ee4b5...db6ee6c. Read the comment docs.