Skip to content

Commit acea66e

Browse files
author
Stephan Dilly
committed
render tabs in diff (closes #12)
1 parent d2d6906 commit acea66e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,4 @@ GITUI_LOGGING=true gitui
6565

6666
* https://github.com/jesseduffield/lazygit
6767
* https://github.com/jonas/tig
68-
* https://github.com/git-up/GitUp (would be nice to comeup with a way to have the map view available in a terminal tool)
69-
70-
test
68+
* https://github.com/git-up/GitUp (would be nice to comeup with a way to have the map view available in a terminal tool)

src/components/diff.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ impl DiffComponent {
244244
// weird eof missing eol line
245245
format!("{}\n", line.content.trim_matches('\n'))
246246
};
247-
let content = Cow::from(filled);
247+
//TODO: allow customize tabsize
248+
let content = Cow::from(filled.replace("\t", " "));
248249

249250
text.push(match line.line_type {
250251
DiffLineType::Delete => {

0 commit comments

Comments
 (0)