Skip to content

Commit c32f69c

Browse files
Merge branch 'MoreCharOptions' into dev
2 parents 8cd2296 + 208e143 commit c32f69c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

internal/display/bufwindow.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func (w *BufWindow) displayBuffer() {
576576
var indentrunes []rune
577577
switch r {
578578
case '\t':
579-
indentrunes = []rune(b.Settings["indentchar"].(string))
579+
indentrunes = []rune(b.Settings["indenttabchar"].(string))
580580
case ' ':
581581
if bloc.X%tabsize == 0 && bloc.X < leadingwsEnd {
582582
indentrunes = []rune(b.Settings["indentspacechar"].(string))
@@ -585,13 +585,7 @@ func (w *BufWindow) displayBuffer() {
585585
}
586586
}
587587

588-
if len(indentrunes) == 0 {
589-
r = ' '
590-
} else {
591-
r = indentrunes[0]
592-
}
593-
594-
// if empty indentchar settings, use space
588+
// if no override for current character, use space
595589
if len(indentrunes) == 0 {
596590
indentrunes = []rune{' '}
597591
}

0 commit comments

Comments
 (0)