Skip to content

Commit

Permalink
308 side by side tabs (#459)
Browse files Browse the repository at this point in the history
* Add #308 bug reproduction

delta --no-gitconfig --diff-highlight --side-by-side < etc/examples/308-side-by-side-tabs.diff

* Expand tabs under diff-highlight and diff-so-fancy

Fixes #308
  • Loading branch information
dandavison committed Dec 23, 2020
1 parent 5e39a0e commit f501e23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 12 additions & 0 deletions etc/examples/308-side-by-side-tabs.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git .config/git/config .config/git/config
index bc4ae2e..b058f99 100644
--- .config/git/config
+++ .config/git/config
@@ -26,7 +21,6 @@
# Show summary of changes to submodules. See also:
# https://git-scm.com/book/en/v2/Git-Tools-Submodules
submoduleSummary = true
- showStash = true

[diff]
tool = vimdiff
10 changes: 4 additions & 6 deletions src/features/diff_highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ pub fn make_feature() -> Vec<(String, OptionValueFunction)> {

pub fn _make_feature(bold: bool) -> Vec<(String, OptionValueFunction)> {
let mut feature = raw::make_feature();
feature = feature
.into_iter()
.filter(|(s, _)| s != "keep-plus-minus-markers" && s != "tabs")
.collect();
feature.extend(builtin_feature!([
(
"keep-plus-minus-markers",
bool,
None,
_opt => false
),
(
"minus-style",
String,
Expand Down

0 comments on commit f501e23

Please sign in to comment.