mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Support loading colorschemes from files
This commit is contained in:
@@ -339,6 +339,9 @@ func (v *View) Display() {
|
||||
|
||||
// Write the line number
|
||||
lineNumStyle := tcell.StyleDefault
|
||||
if _, ok := colorscheme["line-number"]; ok {
|
||||
lineNumStyle = colorscheme["line-number"]
|
||||
}
|
||||
// Write the spaces before the line number if necessary
|
||||
lineNum := strconv.Itoa(lineN + v.topline + 1)
|
||||
for i := 0; i < maxLineLength-len(lineNum); i++ {
|
||||
|
||||
Reference in New Issue
Block a user