aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorA-Walrus2022-08-21 04:54:02 +0000
committerGitHub2022-08-21 04:54:02 +0000
commited74e6d5d405dd37e067c5fd41e2ae908da22a3c (patch)
tree4a3738cc1a3538f2d13cb3f54d7a277b578923dc /helix-view/src
parente61c0b461cc5906d8db8ccffe1c0d3530a83c5a5 (diff)
Switch to `tabpad` configuration option (#3458)
Virtual whitespace tabs are created from the `tab` character padded with `tabpad` up to the tab width.
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 1e7f508c..18c2a343 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -438,6 +438,7 @@ pub struct WhitespaceCharacters {
pub space: char,
pub nbsp: char,
pub tab: char,
+ pub tabpad: char,
pub newline: char,
}
@@ -448,6 +449,7 @@ impl Default for WhitespaceCharacters {
nbsp: '⍽', // U+237D
tab: '→', // U+2192
newline: '⏎', // U+23CE
+ tabpad: ' ',
}
}
}