mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
render tabs in diff (closes #12)
This commit is contained in:
parent
d2d69063e3
commit
acea66e829
2 changed files with 3 additions and 4 deletions
|
|
@ -65,6 +65,4 @@ GITUI_LOGGING=true gitui
|
||||||
|
|
||||||
* https://github.com/jesseduffield/lazygit
|
* https://github.com/jesseduffield/lazygit
|
||||||
* https://github.com/jonas/tig
|
* https://github.com/jonas/tig
|
||||||
* https://github.com/git-up/GitUp (would be nice to comeup with a way to have the map view available in a terminal tool)
|
* https://github.com/git-up/GitUp (would be nice to comeup with a way to have the map view available in a terminal tool)
|
||||||
|
|
||||||
test
|
|
||||||
|
|
@ -244,7 +244,8 @@ impl DiffComponent {
|
||||||
// weird eof missing eol line
|
// weird eof missing eol line
|
||||||
format!("{}\n", line.content.trim_matches('\n'))
|
format!("{}\n", line.content.trim_matches('\n'))
|
||||||
};
|
};
|
||||||
let content = Cow::from(filled);
|
//TODO: allow customize tabsize
|
||||||
|
let content = Cow::from(filled.replace("\t", " "));
|
||||||
|
|
||||||
text.push(match line.line_type {
|
text.push(match line.line_type {
|
||||||
DiffLineType::Delete => {
|
DiffLineType::Delete => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue