skoriop
|
0937d575fd
|
fix: rewrite overflow test using usize::MAX
|
2023-10-05 09:20:09 +02:00 |
|
skoriop
|
d89df18de2
|
test: add test for overflow in LineRange::from
|
2023-10-05 09:20:09 +02:00 |
|
skoriop
|
9fcc57e496
|
fix: integer overflow in LineRange::parse_range
|
2023-10-05 09:20:09 +02:00 |
|
David Peter
|
48541b8507
|
Fix clippy suggestions
Leads to a performance improvement for `bat -A`:
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `./bat-master --no-config -A ./bat-master` | 259.8 ± 1.1 | 258.4 | 261.7 | 1.15 ± 0.01 |
| `./bat-2301 --no-config -A ./bat-master` | 225.6 ± 1.8 | 224.0 | 229.5 | 1.00 |
|
2022-09-04 14:28:44 +02:00 |
|
Bojan Durdevic
|
b8e79a2160
|
Line range edge cases test
|
2021-11-24 07:27:36 +01:00 |
|
Bojan Durdevic
|
715b0d8bf5
|
Line range minus overflow prevention
|
2021-11-24 07:27:36 +01:00 |
|
Bojan Durdevic
|
0eb4aaac1e
|
Line range minus syntax clippy suggestions addressed
|
2021-11-24 07:27:36 +01:00 |
|
Bojan Durdevic
|
bc86c29185
|
Support for line range minus syntax
|
2021-11-24 07:27:36 +01:00 |
|
Bojan Durdevic
|
c86a179412
|
PR comments addressed for line range +delta syntax
|
2021-08-23 19:55:41 +02:00 |
|
Bojan Durdevic
|
0748783404
|
Support for line range plus syntax
|
2021-08-23 19:55:41 +02:00 |
|
Lzu Tao
|
e37e9c1214
|
Fix some clippy lints
Some might actually improve perf
|
2020-04-24 16:11:05 +02:00 |
|
sharkdp
|
702cb198da
|
Rename error module
|
2020-04-22 23:55:28 +02:00 |
|
sharkdp
|
ec0ce05455
|
Better API for highlighting lines
|
2020-04-22 23:55:28 +02:00 |
|
sharkdp
|
a8851e1307
|
Hide methods from line_range
|
2020-03-21 22:21:23 +01:00 |
|
sharkdp
|
a7338e2ea2
|
Run cargo fmt
|
2020-03-21 22:21:23 +01:00 |
|
sharkdp
|
fedd32173e
|
Restructure and fix bug in line range module
|
2020-03-21 19:19:15 +01:00 |
|
sharkdp
|
4855a47105
|
Rename enum field
|
2020-03-21 19:19:15 +01:00 |
|
sharkdp
|
06b7be7ee9
|
Major restructuring of theme/syntax handling
|
2020-03-21 19:19:15 +01:00 |
|
sharkdp
|
ca066bf7cd
|
Run 'cargo fmt'
|
2020-02-28 10:27:06 +01:00 |
|
Liam Kalir
|
5ef1c6cce2
|
Grammar touch-ups, more descriptive error message for invalid line
ranges
|
2020-01-27 06:54:00 +01:00 |
|
Liam Kalir
|
93881d9a64
|
Adds range syntax for line highlights
|
2020-01-27 06:54:00 +01:00 |
|
Fahmi Akbar Wildana
|
2253d07341
|
Derive fmt::Debug whenever possible
|
2019-10-20 21:43:51 +02:00 |
|
Fahmi Akbar Wildana
|
7208a63a49
|
Implement trait Default for struct Config
|
2019-10-20 21:43:51 +02:00 |
|
Daniele Esposti
|
82f14121bd
|
Applied linter fixes
|
2019-03-09 07:43:41 +01:00 |
|
Daniele Esposti
|
a21ae614e6
|
Migrated to Rust 2018
|
2019-03-09 07:43:41 +01:00 |
|
sharkdp
|
496e0bc046
|
Allow for multiple line ranges
See #23
|
2018-10-20 10:44:13 +02:00 |
|
ms2300
|
5444b0dfed
|
Fixes mut issue
|
2018-08-28 20:24:13 +02:00 |
|
sharkdp
|
9316f2a758
|
Major refactoring and cleanup
|
2018-08-22 22:29:12 +02:00 |
|