mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-13 11:00:58 +00:00
Add indentchar option
This commit is contained in:
parent
55e33badd0
commit
23a76e1381
1 changed files with 13 additions and 0 deletions
|
|
@ -461,6 +461,19 @@ func (w *BufWindow) displayBuffer() {
|
|||
}
|
||||
}
|
||||
|
||||
if r == '\t' {
|
||||
if s, ok := config.Colorscheme["indent-char"]; ok {
|
||||
style = s
|
||||
|
||||
indentrunes := []rune(b.Settings["indentchar"].(string))
|
||||
// if empty indentchar settings, use space
|
||||
if indentrunes == nil || len(indentrunes) == 0 {
|
||||
indentrunes = []rune{' '}
|
||||
}
|
||||
r = indentrunes[0]
|
||||
}
|
||||
}
|
||||
|
||||
if s, ok := config.Colorscheme["color-column"]; ok {
|
||||
if colorcolumn != 0 && vloc.X-w.gutterOffset == colorcolumn {
|
||||
fg, _, _ := s.Decompose()
|
||||
|
|
|
|||
Loading…
Reference in a new issue