mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Minor highlighting fixes
This commit is contained in:
parent
e42cf3663b
commit
04e5acb1f8
3 changed files with 108 additions and 14 deletions
File diff suppressed because one or more lines are too long
|
@ -497,15 +497,16 @@ 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{' '}
|
||||
}
|
||||
|
||||
indentrunes := []rune(b.Settings["indentchar"].(string))
|
||||
// if empty indentchar settings, use space
|
||||
if indentrunes == nil || len(indentrunes) == 0 {
|
||||
indentrunes = []rune{' '}
|
||||
}
|
||||
r = indentrunes[0]
|
||||
r = indentrunes[0]
|
||||
if s, ok := config.Colorscheme["indent-char"]; ok && r != ' ' {
|
||||
fg, _, _ := s.Decompose()
|
||||
style = style.Foreground(fg)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@ color-link identifier "#9B703F"
|
|||
color-link identifier.class "#DAD085"
|
||||
color-link identifier.var "#7587A6"
|
||||
color-link indent-char "#515151"
|
||||
color-link line-number "#868686"
|
||||
color-link line-number "#868686,#1B1B1B"
|
||||
color-link current-line-number "#868686,#141414"
|
||||
color-link preproc "#E0C589"
|
||||
color-link special "#E0C589"
|
||||
color-link statement "#CDA869"
|
||||
|
|
Loading…
Reference in a new issue