mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
@@ -591,7 +591,9 @@ func (v *View) DisplayView() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
indentChar := []rune(settings["indentchar"].(string))
|
indentChar := []rune(settings["indentchar"].(string))
|
||||||
screen.SetContent(x-v.leftCol, lineN, indentChar[0], nil, lineIndentStyle)
|
if x-v.leftCol >= v.lineNumOffset {
|
||||||
|
screen.SetContent(x-v.leftCol, lineN, indentChar[0], nil, lineIndentStyle)
|
||||||
|
}
|
||||||
tabSize := int(settings["tabsize"].(float64))
|
tabSize := int(settings["tabsize"].(float64))
|
||||||
for i := 0; i < tabSize-1; i++ {
|
for i := 0; i < tabSize-1; i++ {
|
||||||
x++
|
x++
|
||||||
@@ -626,7 +628,7 @@ func (v *View) DisplayView() {
|
|||||||
|
|
||||||
charNum++
|
charNum++
|
||||||
|
|
||||||
for i := 0; i < v.width-x; i++ {
|
for i := 0; i < v.width-(x-v.leftCol); i++ {
|
||||||
lineStyle := tcell.StyleDefault
|
lineStyle := tcell.StyleDefault
|
||||||
if settings["cursorline"].(bool) && !v.Cursor.HasSelection() && v.Cursor.Y == lineN+v.Topline {
|
if settings["cursorline"].(bool) && !v.Cursor.HasSelection() && v.Cursor.Y == lineN+v.Topline {
|
||||||
if style, ok := colorscheme["cursor-line"]; ok {
|
if style, ok := colorscheme["cursor-line"]; ok {
|
||||||
@@ -634,7 +636,9 @@ func (v *View) DisplayView() {
|
|||||||
lineStyle = lineStyle.Background(fg)
|
lineStyle = lineStyle.Background(fg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
screen.SetContent(x+i, lineN, ' ', nil, lineStyle)
|
if !(x-v.leftCol < v.lineNumOffset) {
|
||||||
|
screen.SetContent(x-v.leftCol+i, lineN, ' ', nil, lineStyle)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user