We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8cd2296 + 208e143 commit c32f69cCopy full SHA for c32f69c
1 file changed
internal/display/bufwindow.go
@@ -576,7 +576,7 @@ func (w *BufWindow) displayBuffer() {
576
var indentrunes []rune
577
switch r {
578
case '\t':
579
- indentrunes = []rune(b.Settings["indentchar"].(string))
+ indentrunes = []rune(b.Settings["indenttabchar"].(string))
580
case ' ':
581
if bloc.X%tabsize == 0 && bloc.X < leadingwsEnd {
582
indentrunes = []rune(b.Settings["indentspacechar"].(string))
@@ -585,13 +585,7 @@ func (w *BufWindow) displayBuffer() {
585
}
586
587
588
- if len(indentrunes) == 0 {
589
- r = ' '
590
- } else {
591
- r = indentrunes[0]
592
- }
593
-
594
- // if empty indentchar settings, use space
+ // if no override for current character, use space
595
if len(indentrunes) == 0 {
596
indentrunes = []rune{' '}
597
0 commit comments