mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-13 22:28:26 +02:00
Fix #937
This commit is contained in:
parent
0cde4e9121
commit
7a87315b94
@ -24,9 +24,11 @@
|
|||||||
|
|
||||||
- Performance problems with C# source code have been fixed, see #677 (@keith-hall)
|
- Performance problems with C# source code have been fixed, see #677 (@keith-hall)
|
||||||
- Performance problems with Makefiles have been fixed, see #750 (@keith-hall)
|
- Performance problems with Makefiles have been fixed, see #750 (@keith-hall)
|
||||||
- Fig bux when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
|
- Fix bug when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
|
||||||
- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall)
|
- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall)
|
||||||
- Windows: short files that do not require paging are displayed and then lost, see #887
|
- Windows: short files that do not require paging are displayed and then lost, see #887
|
||||||
|
- `--highlight-line` did not work correctly in combination with `--tabs=0` and `--wrap=never`,
|
||||||
|
see #937
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
|
@ -223,6 +223,7 @@ impl<'a> InteractivePrinter<'a> {
|
|||||||
if self.config.tab_width > 0 {
|
if self.config.tab_width > 0 {
|
||||||
expand_tabs(text, self.config.tab_width, cursor)
|
expand_tabs(text, self.config.tab_width, cursor)
|
||||||
} else {
|
} else {
|
||||||
|
*cursor += text.len();
|
||||||
text.to_string()
|
text.to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user