- lineIndentStyle = style
- }
- }
- if v.Buf.Settings["cursorline"].(bool) && tabs[curTab].CurView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == curLineN {
- if style, ok := colorscheme["cursor-line"]; ok {
- fg, _, _ := style.Decompose()
- lineIndentStyle = lineIndentStyle.Background(fg)
- }
- }
- // Here we get the indent char
- indentChar := []rune(v.Buf.Settings["indentchar"].(string))
- if screenX-v.x-v.leftCol >= v.lineNumOffset {
- v.drawCell(screenX-v.leftCol, screenY, indentChar[0], nil, lineIndentStyle)
- }
- // Now the tab has to be displayed as a bunch of spaces
- visLoc := strWidth
- remainder := tabSize - (visLoc % tabSize)
- for i := 0; i < remainder-1; i++ {
- screenX++
- if screenX-v.x-v.leftCol >= v.lineNumOffset {
- v.drawCell(screenX-v.leftCol, screenY, ' ', nil, lineStyle)