mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-25 13:48:50 +08:00
commit
b698e3f93c
@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
|
||||
- addressing some lint issues.
|
||||
- coveralls again triggers and reports on PRs.
|
||||
- improving test coverage in some modules.
|
||||
|
||||
|
@ -135,8 +135,6 @@ func convMouse(event *tcell.EventMouse) terminalapi.Event {
|
||||
}
|
||||
}
|
||||
|
||||
// Get only button events, not wheel events
|
||||
tcellBtn &= tcell.ButtonMask(0xff)
|
||||
switch tcellBtn = event.Buttons(); tcellBtn {
|
||||
case tcell.ButtonNone:
|
||||
button = mouse.ButtonRelease
|
||||
|
@ -128,7 +128,7 @@ func ValueFormatterSuffix(decimals int, suffix string) ValueFormatter {
|
||||
}
|
||||
|
||||
// valueFormatterSuffixWithTransformer is a factory that returns a formatter
|
||||
// that will apply a tranform function to the received value before
|
||||
// that will apply a transform function to the received value before
|
||||
// returning the decimal with suffix representation.
|
||||
func valueFormatterSuffixWithTransformer(decimals int, suffix string, transformFunc func(float64) float64) ValueFormatter {
|
||||
dFmt := suffixDecimalFormat(decimals, suffix)
|
||||
|
Loading…
x
Reference in New Issue
Block a user