on master help sign in
Fix #937
commit7a87315b940ae7b8a38e83bddedd8f8b908c4c7c authorsharkdp <davidpeter@web.de> dateWed 22 Apr 2020, 20:53 (7 years ago) parent0cde4e9
2 files changed+4−1
CHANGELOG.md+3−1 src/printer.rs+1
CHANGELOG.md+3−1
@@ -24,9 +24,11 @@
2424
2525- Performance problems with C# source code have been fixed, see #677 (@keith-hall)
2626- Performance problems with Makefiles have been fixed, see #750 (@keith-hall)
27−- Fig bux when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
27+- Fix bug when highlighting Ruby files with unindented heredocs, see #914 (@keith-hall)
2828- A highlighting problem with Rust source code has been fixed, see #924 (@keith-hall)
2929- Windows: short files that do not require paging are displayed and then lost, see #887
30+- `--highlight-line` did not work correctly in combination with `--tabs=0` and `--wrap=never`,
31+ see #937
3032
3133## Other
3234
src/printer.rs+1
@@ -223,6 +223,7 @@ impl<'a> InteractivePrinter<'a> {
223223 if self.config.tab_width > 0 {
224224 expand_tabs(text, self.config.tab_width, cursor)
225225 } else {
226+ *cursor += text.len();
226227 text.to_string()
227228 }
228229 }