- screen.SetContent(x+tabchars, lineN, ' ', nil, lineStyle)
+ lineIndentStyle := defStyle
+ if style, ok := colorscheme["indent-char"]; ok {
+ lineIndentStyle = style
+ }
+ if v.Cursor.HasSelection() &&
+ (charNum.GreaterEqual(v.Cursor.CurSelection[0]) && charNum.LessThan(v.Cursor.CurSelection[1]) ||
+ charNum.LessThan(v.Cursor.CurSelection[0]) && charNum.GreaterEqual(v.Cursor.CurSelection[1])) {
+
+ lineIndentStyle = tcell.StyleDefault.Reverse(true)
+
+ if style, ok := colorscheme["selection"]; ok {
+ lineIndentStyle = style
+ }
+ }
+ if settings["cursorline"].(bool) && !v.Cursor.HasSelection() && v.Cursor.Y == lineN+v.Topline {
+ if style, ok := colorscheme["cursor-line"]; ok {
+ fg, _, _ := style.Decompose()
+ lineIndentStyle = lineIndentStyle.Background(fg)
+ }
+ }
+ indentChar := []rune(settings["indentchar"].(string))
+ if x-v.leftCol >= v.lineNumOffset {
+ screen.SetContent(x-v.leftCol, lineN+v.y, indentChar[0], nil, lineIndentStyle)
+ }