File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments