fix: blame tabs indentation

This commit is contained in:
Fernando Silva 2022-01-31 01:07:48 -03:00 committed by Stephan Dilly
parent 6e0e4b57b5
commit 2745d9f860
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Fixed
* tabs indentation in blame ([#1111](https://github.com/extrawurst/gitui/issues/1117))
### Added
* file history log [[@cruessler](https://github.com/cruessler)] ([#381](https://github.com/extrawurst/gitui/issues/381))

View file

@ -6,6 +6,7 @@ use crate::{
components::{utils::string_width_align, ScrollType},
keys::SharedKeyConfig,
queue::{InternalEvent, Queue},
string_utils::tabs_to_spaces,
strings,
ui::{self, style::SharedTheme},
};
@ -415,7 +416,7 @@ impl BlameFileComponent {
.style(self.theme.text(true, false)),
);
cells.push(
Cell::from(String::from(line))
Cell::from(tabs_to_spaces(String::from(line)))
.style(self.theme.text(true, false)),
);