mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-23 15:44:44 +00:00
Disable current line num style if no cursorline
This commit is contained in:
parent
d94b81b8e6
commit
09ea82c97e
1 changed files with 3 additions and 3 deletions
|
|
@ -416,10 +416,10 @@ func (w *BufWindow) displayBuffer() {
|
|||
}
|
||||
curNumStyle := config.DefStyle
|
||||
if style, ok := config.Colorscheme["current-line-number"]; ok {
|
||||
curNumStyle = style
|
||||
if !b.Settings["cursorline"].(bool) {
|
||||
_, bg, _ := lineNumStyle.Decompose()
|
||||
curNumStyle = curNumStyle.Background(bg)
|
||||
curNumStyle = lineNumStyle
|
||||
} else {
|
||||
curNumStyle = style
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue