mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-25 00:24:45 +00:00
parent
d92deacf99
commit
8f5888e7bf
1 changed files with 2 additions and 2 deletions
|
|
@ -559,7 +559,7 @@ func (w *BufWindow) displayBuffer() {
|
|||
}
|
||||
|
||||
if s, ok := config.Colorscheme["color-column"]; ok {
|
||||
if colorcolumn != 0 && vloc.X-w.gutterOffset == colorcolumn {
|
||||
if colorcolumn != 0 && vloc.X-w.gutterOffset+w.StartCol == colorcolumn {
|
||||
fg, _, _ := s.Decompose()
|
||||
style = style.Background(fg)
|
||||
}
|
||||
|
|
@ -653,7 +653,7 @@ func (w *BufWindow) displayBuffer() {
|
|||
for i := vloc.X; i < bufWidth; i++ {
|
||||
curStyle := style
|
||||
if s, ok := config.Colorscheme["color-column"]; ok {
|
||||
if colorcolumn != 0 && i-w.gutterOffset == colorcolumn {
|
||||
if colorcolumn != 0 && i-w.gutterOffset+w.StartCol == colorcolumn {
|
||||
fg, _, _ := s.Decompose()
|
||||
curStyle = style.Background(fg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue